20 lines
422 B
GDScript3
20 lines
422 B
GDScript3
extends Node
|
|
|
|
signal next_screen(screen_name)
|
|
|
|
# Declare member variables here.
|
|
|
|
|
|
func _ready():
|
|
pass
|
|
|
|
func init():
|
|
pass
|
|
|
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
func _process(_delta):
|
|
if Input.is_action_just_pressed('ui_select'):
|
|
emit_signal("next_screen", "game")
|
|
elif Input.is_action_just_pressed('ui_cancel'):
|
|
emit_signal("next_screen", "game_lost")
|