implemented 3d text and fixed timer not working
This commit is contained in:
parent
393b4b26c8
commit
935c47a46e
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
@ -11,3 +13,11 @@ func _on_2600_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://menus/level_select_scholar.tscn"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue