Has basic side to side movement and a basic jump Signed-off-by: Ethan Wellenreiter <ewellenreiter@gmail.com>
34 lines
735 B
GDScript
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()
|