Added a strategic pygame.event.pump() in level.py. Levels 4-7 added, will probably need refining.

This commit is contained in:
Storm Dragon
2025-02-09 17:05:49 -05:00
parent 6303cf93e7
commit ffb0f8cb4d
5 changed files with 772 additions and 177 deletions

View File

@@ -268,6 +268,9 @@ class Level:
def handle_collisions(self):
"""Handle all collision checks and return True if level is complete."""
# Add a pump here so it gets called reasonably often.
pygame.event.pump()
# First check if player is dead
if self.player.get_health() <= 0:
return False