Implemented win/lose scenes and added fire spinner trap
This commit is contained in:
10
GUI/Level Ending.gd
Normal file
10
GUI/Level Ending.gd
Normal file
@@ -0,0 +1,10 @@
|
||||
extends CanvasLayer
|
||||
|
||||
export var hub_world_path: String = 'res://Levels/Hub World.tscn'
|
||||
|
||||
|
||||
func _on_timer_timeout() -> void:
|
||||
if get_tree().change_scene(hub_world_path) != OK:
|
||||
print('ERROR: Level Ending failed to change scene to Hub World.')
|
||||
queue_free()
|
||||
return
|
Reference in New Issue
Block a user