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
This commit is contained in:
parent
83ff6ef14d
commit
49988ae674
14 changed files with 202 additions and 6 deletions
8
scripts/gameplay.gd
Normal file
8
scripts/gameplay.gd
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
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")
|
||||
Loading…
Add table
Add a link
Reference in a new issue