Updated libstormgames submodule. Rewrite load level on death. This was actually a lot easier than I was making it.
This commit is contained in:
@@ -188,9 +188,14 @@ class WickedQuest:
|
||||
pygame.mixer.stop()
|
||||
self.display_game_over(pygame.time.get_ticks() - startTime)
|
||||
return
|
||||
else:
|
||||
pygame.mixer.stop()
|
||||
self.load_level(currentLevelNum)
|
||||
self.currentLevel.player._health = self.currentLevel.player._maxHealth # Restore health
|
||||
continue
|
||||
|
||||
# Handle collisions and check level completion
|
||||
if self.currentLevel.handle_collisions(): # Changed from elif to if
|
||||
if self.currentLevel.handle_collisions():
|
||||
# Level completed
|
||||
self.display_level_stats(pygame.time.get_ticks() - startTime)
|
||||
|
||||
|
Reference in New Issue
Block a user