Add background and music to game

This commit is contained in:
James Skemp 2023-10-10 21:07:17 -05:00
parent d98fda3fb8
commit ac75d87263
2 changed files with 28 additions and 1 deletions

View File

@ -12,6 +12,8 @@ func game_over():
$ScoreTimer.stop()
$MobTimer.stop()
$HUD.show_game_over()
$Music.stop()
$DeathSound.play()
func new_game():
score = 0
@ -21,6 +23,7 @@ func new_game():
$HUD.show_message("Get Ready")
# Get the mobs group (all Mob instances) and set them all to free.
get_tree().call_group("mobs", "queue_free")
$Music.play()
func _on_score_timer_timeout():

File diff suppressed because one or more lines are too long