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:
Henry 2025-10-12 13:20:30 +01:00
parent 83ff6ef14d
commit 49988ae674
14 changed files with 202 additions and 6 deletions

13
scenes/Main.tscn Normal file
View file

@ -0,0 +1,13 @@
[gd_scene load_steps=4 format=3 uid="uid://dy4s4as4b07s8"]
[ext_resource type="Script" uid="uid://bi1hbvswrw6yr" path="res://scripts/main.gd" id="1_0bbpv"]
[ext_resource type="PackedScene" uid="uid://d04c3lqwj6a5h" path="res://scenes/Start.tscn" id="2_rarhs"]
[ext_resource type="PackedScene" uid="uid://ct7v3x7imstlk" path="res://scenes/gameplay.tscn" id="3_vcsgt"]
[node name="Main" type="Node2D"]
script = ExtResource("1_0bbpv")
[node name="Start" parent="." instance=ExtResource("2_rarhs")]
z_index = 5
[node name="Gameplay" parent="." instance=ExtResource("3_vcsgt")]