aboutsummaryrefslogtreecommitdiff
path: root/game/src/MainMenu.gd
diff options
context:
space:
mode:
author Robert Clarke <clarke.john.robert@gmail.com>2023-02-12 09:49:23 +0100
committer Robert Clarke <clarke.john.robert@gmail.com>2023-02-12 09:49:23 +0100
commitb9e452345899d0066fdae143ec21609fc1996831 (patch)
tree0de7878a04c0d46835208147c4ab4faba1d3ebee /game/src/MainMenu.gd
parentd45323cadee9044d8536f7eb9827a43b36e4bdff (diff)
Simple example of Godot querying and updating the state of a C++ object
Diffstat (limited to 'game/src/MainMenu.gd')
-rw-r--r--game/src/MainMenu.gd1
1 files changed, 1 insertions, 0 deletions
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():