Files
boatgame/scripts/game.gd
T
2026-07-07 10:01:56 +02:00

7 lines
183 B
GDScript

# scripts/game.gd — autoloaded as "Game"
extends Node
func _unhandled_input(event: InputEvent) -> void:
if event.is_action_pressed("restart"):
get_tree().reload_current_scene()