freettrpg/scripts/menu.gd
2024-06-18 18:58:47 +02:00

16 lines
608 B
GDScript

extends Node
# Function called when button 1 is pressed
func _on_button_pressed():
get_tree().change_scene_to_file("res://scenes/map/map.tscn")
# Change the scene to the map scene ("map.tscn")
# Function called when button 2 is pressed
func _on_button_2_pressed():
get_tree().change_scene_to_file("res://scenes/menu/view.tscn")
# Change the scene to the view menu scene ("view.tscn")
# Function called when button 3 is pressed
func _on_button_3_pressed():
get_tree().change_scene_to_file("res://scenes/menu/create.tscn")
# Change the scene to the create menu scene ("create.tscn")