10 lines
279 B
GDScript3
10 lines
279 B
GDScript3
|
|
extends Node2D
|
||
|
|
|
||
|
|
|
||
|
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||
|
|
func _process(delta: float) -> void:
|
||
|
|
if Input.is_action_just_pressed("quit"):
|
||
|
|
get_tree().quit()
|
||
|
|
elif Input.is_action_just_pressed("reset"):
|
||
|
|
get_tree().reload_current_scene()
|