title screen and ending

This commit is contained in:
Haze Weathers 2025-07-17 21:43:43 -06:00
parent 2d463c0243
commit edc2eecd3a
6 changed files with 75 additions and 20 deletions

View file

@ -40,3 +40,11 @@ func _physics_process(delta):
Game.score += 500
Game.shards_collected[0] = true
slaughter_shard_collected = true
if Game.shards >= 5:
end_game()
func end_game() -> void:
Audio.ac_msx_ending.play()
Game.change_map(preload("res://maps/msx_ending.tscn"), 2.0)