From b9e452345899d0066fdae143ec21609fc1996831 Mon Sep 17 00:00:00 2001 From: Robert Clarke Date: Sun, 12 Feb 2023 03:49:23 -0500 Subject: Simple example of Godot querying and updating the state of a C++ object --- game/src/MainMenu.gd | 1 + 1 file changed, 1 insertion(+) (limited to 'game/src/MainMenu.gd') diff --git a/game/src/MainMenu.gd b/game/src/MainMenu.gd index a9cdf10..82b7b2f 100644 --- a/game/src/MainMenu.gd +++ b/game/src/MainMenu.gd @@ -16,6 +16,7 @@ func _ready(): func _on_new_game_button_pressed(): print("Start a new game!") + get_tree().change_scene_to_file("res://src/SampleGame.tscn") func _on_continue_button_pressed(): -- cgit v1.2.3-56-ga3b1