sploosh! BZAAP!

This commit is contained in:
Haze Weathers 2024-07-08 15:22:49 -04:00
parent e5859ae452
commit 9ca4cf10d2
5 changed files with 13 additions and 2 deletions

View file

@ -50,6 +50,7 @@ var can_restart: bool = true
var current_palette: String = "default"
var still_playing: bool = false
var last_mm_button = null
var alternate_death = null
#== marathon mode ==#
var marathon_mode: bool = false
var marathon_score: int = 0
@ -317,7 +318,11 @@ func _on_player_died() -> void:
# count death
lives -= 1
# play death sound
Audio.play_sound(Audio.a_die, Audio.ac_die)
if alternate_death:
Audio.play_sound(alternate_death, Audio.ac_die)
else:
Audio.play_sound(Audio.a_die, Audio.ac_die)
alternate_death = null
# death score penalty
if use_lives == false && lives < 0:
score = max(0, score - 500) as int