made beating the boss boot you to level select scholar instead of debug level select

This commit is contained in:
pennyrigate 2023-09-30 22:51:12 -04:00
parent 0acf955e60
commit 393b4b26c8

View file

@ -1,5 +1,7 @@
extends "res://maps/map.gd"
const Text3D = preload("res://objects/hud/3d_text.tscn")
func _ready():
Game.current_sector = Vector2.ZERO
@ -15,8 +17,11 @@ func _on_Boss1_entered_phase(phase):
$DelayedArrow3.start()
4:
$ExitTimer.start()
var text_3d = Text3D.instance()
text_3d.anim = "victory"
self.add_child(text_3d)
func _on_ExitTimer_timeout():
Game.save()
Game.change_map(load("res://maps/level_select.tscn"))
Game.change_map(load("res://menus/level_select_scholar.tscn"))