fixed bug where the game over text would glitch out for a few frames

This commit is contained in:
pennyrigate 2024-07-11 19:32:26 -04:00
parent 102c170983
commit 5800db8432
2 changed files with 3 additions and 3 deletions

View file

@ -176,6 +176,4 @@ func _on_animation_finished(anim_name: String) -> void:
"Beam":
state = State.STAND
"die":
var map = Game.get_map()
var gover = load("res://menus/game_over.tscn").instance()
map.add_child(gover)
Game.change_map(load("res://menus/game_over.tscn"))