From 61c5ce2be7a048cea4c6feb1fb035e898869b65a Mon Sep 17 00:00:00 2001 From: Willow Behar <2364126-TechRunner@users.noreply.gitlab.com> Date: Tue, 7 May 2024 17:16:51 -0500 Subject: [PATCH] Added scene change to open up the game scene when pressing the start game button --- Assets/scripts/game_window.gd | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/Assets/scripts/game_window.gd b/Assets/scripts/game_window.gd index 11bd378..90a5778 100644 --- a/Assets/scripts/game_window.gd +++ b/Assets/scripts/game_window.gd @@ -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)