Snake/Scripts/Main Menu Buttons.gd

17 lines
408 B
GDScript3
Raw Normal View History

extends Control
@onready var game_scene = load("res://Scene/Game.tscn").instantiate()
func _ready():
$"MarginContainer/VBoxContainer/Menu Butons/Start Button".grab_focus()
func _on_start_button_pressed():
get_tree().change_scene_to_file("res://Scene/Game.tscn")
func _on_quit_button_pressed():
get_tree().quit()
func _on_about_button_pressed():
OS.shell_open("https://git.euph.dev/snoweuph/Snake")