Add death effect and sound to PlayerDeathComponent; reset player state on death
This commit is contained in:
@@ -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": [],
|
||||
}
|
Reference in New Issue
Block a user