Dec-06-2019, 03:03 AM
Line 96 onward. The game code is indented under the
But also, each of those states is still doing it's own event pumping. In a perfect world, the line
if key[pygame.K_e]:
line, so nothing would happen unless you were closing the game.But also, each of those states is still doing it's own event pumping. In a perfect world, the line
for event in pygame.event.get():
would only exist in one place in your code.