Add death effect and sound to PlayerDeathComponent; reset player state on death

This commit is contained in:
2025-05-03 05:53:30 +02:00
parent e10ce150f8
commit 4e5427e731
3 changed files with 30 additions and 6 deletions

View File

@@ -51,4 +51,12 @@ func unlock_skill(skill_name: String) -> void:
func unlock_skills(skill_names: Array[String]) -> void:
for skill_name in skill_names:
unlock_skill(skill_name)
unlock_skill(skill_name)
func reset_player_state() -> void:
player_state = {
"coins": 0,
"lives": 3,
"unlocked_skills": [],
}