Handle SDL Events, as quit window event and keyboard events
Creates a Rect as player and moves with arrow keyboard keys
I had some problems earlier with the order of game loop on Game.run
main while. I tried to use that order:
event(&e)
update(dt)
render()
But that doesn't go well and finished being with unstable performance
by moving the rect. Try to make changes on that order to see what
happens. I don't know what is happening here exactly.
I had some problems earlier with the order of game loop on Game.run main while. I tried to use that order:
But that doesn't go well and finished being with unstable performance by moving the rect. Try to make changes on that order to see what happens. I don't know what is happening here exactly.