Pong/scripts/gameplay.gd
Henry 49988ae674 Add menu system and scene navigation
The changes include: - Moving script files to scripts/ directory -
Creating Start menu scene with Play/Quit buttons - Adding scene
switching between menu and gameplay - Creating theme for menu buttons -
Adding ESC key to return to menu
2025-10-12 13:20:30 +01:00

8 lines
186 B
GDScript

extends Control
func _ready():
set_process(true)
func _process(_delta):
if Input.is_action_pressed("key_exit"):
get_tree().change_scene_to_file("res://scenes/Start.tscn")