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)