freettrpg/scripts/menu.gd

14 lines
418 B
GDScript3
Raw Normal View History

2024-06-13 13:29:05 +02:00
extends Node
# Function called when "Play" is pressed
2024-06-14 09:42:54 +02:00
func _on_button_pressed():
get_tree().change_scene_to_file("res://scenes/map/map.tscn")
2024-06-14 09:42:54 +02:00
# Function called when "View" is pressed
2024-06-14 09:42:54 +02:00
func _on_button_2_pressed():
get_tree().change_scene_to_file("res://scenes/menu/view.tscn")
# Function called when "Create" is pressed
func _on_button_3_pressed():
get_tree().change_scene_to_file("res://scenes/menu/create.tscn")