title screen and ending
This commit is contained in:
parent
2d463c0243
commit
edc2eecd3a
6 changed files with 75 additions and 20 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue