Added speech history in the game bound to f1 previous, f2 current, f3 next. I may expand this later.

This commit is contained in:
Storm Dragon
2025-09-23 17:56:22 -04:00
parent e15b497c54
commit 8688c8fad3
4 changed files with 40 additions and 1 deletions

View File

@@ -231,6 +231,8 @@ class Player:
self._lives -= 1
# Mark that player died this frame to prevent revival
self.diedThisFrame = True
# Record death time for delay before respawn/game over
self.deathTimestamp = pygame.time.get_ticks()
# Stop all current sounds before playing death sound
pygame.mixer.stop()
try: