local_game_jam_jan_2025/ui/main menu/main_menu.gd
Ethan Wellenreiter 99d09e2555 Initial commit
Has basic side to side movement and a basic jump

Signed-off-by: Ethan Wellenreiter <ewellenreiter@gmail.com>
2025-01-01 16:57:43 -05:00

34 lines
735 B
GDScript

extends Control
@onready var play: Button = %Play
@onready var options: Button = %Options
@onready var credits: Button = %Credits
@onready var quit: Button = %Quit
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
func _on_play_pressed() -> void:
#await get_tree().create_timer(20).timeout
print("Pressed play")
Universe.switch_scene(2)
#func _on_options_pressed() -> void:
#pass # Replace with function body.
#
#
func _on_credits_pressed() -> void:
Universe.switch_scene(3)
func _on_quit_pressed() -> void:
get_tree().quit()