Reverted back to changing scenes for now. Ready for co-creative director review.

This commit is contained in:
2024-01-18 18:19:13 -08:00
parent 763ce182a4
commit 9dfa9f23f1
9 changed files with 103 additions and 53 deletions
+31
View File
@@ -0,0 +1,31 @@
extends CanvasLayer
var mainScene
# Called when the node enters the scene tree for the first time.
func _ready():
#$CenterContainer/VBoxContainer/Button05.button_up.connect( _on_quit )
#$CenterContainer/VBoxContainer/Button01.button_up.connect( _on_play )
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass
func _on_quit():
get_tree().quit()
func _on_play_lv0():
get_tree().change_scene_to_file( "res://scenes/main.tscn" )
func _on_play_lv1():
get_tree().change_scene_to_file( "res://scenes/main1.tscn" )
#$".".hide()
#var w = get_node("/root/World");
#
#if !w:
#get_tree().change_scene_to_file( "res://scenes/main.tscn" )
#else:
#w.load_level()
#w.player_spawn()
#w.show()