Files
DartGame/game/scenes/main.gd

13 lines
403 B
GDScript

extends Node3D
## Scene root. Deliberately tiny.
##
## Dart input lives in camera_3d.gd (the raycast is a camera operation).
## Board behaviour lives in dartboard.gd. Modifier UI lives in core/ui/.
## This script wires nothing and owns nothing — it's just the tree root.
func _unhandled_input(event: InputEvent) -> void:
if event.is_action_pressed(&"restart"):
get_tree().reload_current_scene()