This is my proof of concept for a simple gtk4 2D action game using only available widgets and hosted on github.
Keyboard input is not fluid. I am using the GtkEventControllerKey to process keyboard inputs but since it is meant for widgets the keyboard input is kind of lagging behind. And i can’t move and shoot at the same time while holding both the arrow key and the space bar for shooting. Is there a keyboard function that i can called on each frame to process the keyboard input just as it’s usually done in a game loop?
How can i apply a tint effect on a GtkPicture?
This one has nothing to do with the game but i was just testing rotation animation of a GtkPicture using gtk_fixed_set_child_transform. I noticed that the GtkPicture is rotated with its pivot being at the top left corner. Is there a way to rotate around the center of the picture or any specific point within the picture?