diff options
Diffstat (limited to 'menu/Menu.gd')
| -rw-r--r-- | menu/Menu.gd | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/menu/Menu.gd b/menu/Menu.gd new file mode 100644 index 0000000..d04aad7 --- /dev/null +++ b/menu/Menu.gd @@ -0,0 +1,31 @@ +extends MarginContainer + + +# Declare member variables here. Examples: +# var a = 2 +# var b = "text" + + +# 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_Play_button_up(): + if get_tree().change_scene("res://game/game.tscn") != OK: + print("There was an error trying to load the scene...") + pass # Replace with function body. + + +func _on_Credits_button_up(): + pass # Replace with function body. + + +func _on_Quit_button_up(): + get_tree().quit() + pass # Replace with function body. |
