martian-mike/scripts/level.gd

10 lines
279 B
GDScript3
Raw Normal View History

2024-11-01 18:15:44 +01:00
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()