Kept goiong, but not quite happy.

This commit is contained in:
2024-01-18 15:31:40 -08:00
parent 3a3b9b29db
commit 763ce182a4
15 changed files with 423 additions and 80 deletions
+11 -3
View File
@@ -1,5 +1,5 @@
extends Control
extends CanvasLayer
var mainScene
# Called when the node enters the scene tree for the first time.
func _ready():
@@ -16,5 +16,13 @@ func _on_quit():
get_tree().quit()
func _on_play():
get_tree().change_scene_to_file("res://scenes/main.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()