Pygame: key.get_pressed() does not coincide with the event queue
For things like movement, you should not check for events (like KEYDOWN or KEYUP), but check every iteration of your mainloop if your movement keys are pressed (using get_pressed). In your code, you check the pressed keys only if there’s also a KEYDOWN event. There are also some other things to consider: You should seperate … Read more