ygdra/screen/start_screen.gd

9 lines
341 B
GDScript

extends AbstractScreen
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
if Input.is_action_just_pressed("ui_menu"):
get_tree().notification(MainLoop.NOTIFICATION_WM_QUIT_REQUEST)
if Input.is_action_just_pressed("ui_accept"):
emit_signal("next_screen", "exploration")