Added scene change to open up the game scene when pressing the start game button

This commit is contained in:
Willow Behar
2024-05-07 17:16:51 -05:00
parent f016e576ed
commit 61c5ce2be7

View File

@ -1,11 +1,7 @@
extends Window
extends Node
var game = preload("res://Assets/game.tscn").instantiate()
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass
func _on_main_menu_start_game():
self.remove_child($"Main Menu")
self.add_child(game)