Hi I was thinking what are the most convenient and elegant ways to animate lots of properties like sprite position, color pulse, time tracking and so on. For a decade I've always written code like: void update(float dt) { my_anim.update(dt); my_color.update(dt); } It's easy but annoying as each time...
Hi, I'm creating a basic 2D platform game. While collisions are easy to implement, I'm thinking how games usually implement per type of ennemies movements. For example, in most Mario games, there are some kind of Koopas which move on their platforms and go back-and-forth if there are no more edge (t...
Hello, I'm writing a small turn based RPG game in solo. I have a trouble trying to design a correct and convenient way to implement procedural based scenarios. Example of scenario when the player talks to a NPC: NPC says: "Would you like to test your sword ability?" (a graphical message appear) NPC...
Hello, I'm searching lot of articles to see how to write a game with different resolutions in mind. It's a 2D game so basically it will consist of simple images, fonts and basic shapes. My questions: How do yo know which size you will need when creating your image assets? My naive thought is to draw...
Hi, I'm a long Qt user, but only for desktop application. I'm writing a game that will require lot of user interfaces so I think I could just use Qt instead of writing my own GUI in SDL 2. However, I have no much experience with Qt for game development (animations, graphicsview and such). So I'm sea...
Hello, I have a thinkpad x1 carbon 5th generation which has 2560x1440 resolution, I use dwm (a tiling window manager) and obviously everything need to be scaled. In GNOME it works pretty fine, using dwm I use GDK_SCALE=2 to make everything bigger and it renders correctly. My company ordered an iiyam...
Hello, I'm thinking of a design choice where I can avoid repeating myself from the server and client code. Imagine an account class (server side), it has a lot of information (name, email, ...). This class has also some function for persistence, when a client request to update one of the setting, th...
Hello, It looks like the support of thinkpad docks are not very stable. I have a t470s which is docked most of the time and the lid closed. I have a button to power on on the dock itself. When I boot, I randomly have screen not displayed on my external monitor, so I don't see the plymouth bootup whi...
Hello, I have a hidpi screen on my laptop, since I updated to GNOME 3.24 the GNOME Display Manager is not scaled anymore so I have very small buttons, bar and such. After being logged in, GNOME is scaled as usual though. Is there any step to enable scaling for GDM too?