Draw after update.

This commit is contained in:
paulusja 2026-04-23 15:18:12 +02:00
parent 102b89f449
commit a7735e2084

View File

@ -41,8 +41,8 @@ if __name__ == '__main__':
while last_input != InputManager.QUIT: while last_input != InputManager.QUIT:
last_input = input_manager.process_input() last_input = input_manager.process_input()
draw_all(window, game_objs)
update_all(game_objs, last_input) update_all(game_objs, last_input)
draw_all(window, game_objs)
clock.tick(framerate) clock.tick(framerate)
pygame.display.flip() pygame.display.flip()