Updated libstormgames submodule. Rewrite load level on death. This was actually a lot easier than I was making it.
This commit is contained in:
		| @@ -152,8 +152,6 @@ class Player: | ||||
|             # Stop all current sounds before playing death sound | ||||
|             pygame.mixer.stop() | ||||
|             cut_scene(self.sounds, 'lose_a_life') | ||||
|             if self._lives > 0: | ||||
|                 self.reset_on_death() | ||||
|                  | ||||
|     def set_max_health(self, value): | ||||
|         """Set max health""" | ||||
| @@ -167,13 +165,6 @@ class Player: | ||||
|         """Get remaining lives""" | ||||
|         return self._lives | ||||
|              | ||||
|     def reset_on_death(self): | ||||
|         """Reset player state after death""" | ||||
|         self._health = self._maxHealth | ||||
|         self.isJumping = False | ||||
|         self.isRunning = False | ||||
|         self.xPos = 0 | ||||
|  | ||||
|     def add_weapon(self, weapon): | ||||
|         """Add a new weapon to inventory and equip if first weapon""" | ||||
|         self.weapons.append(weapon) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user