Gamepad support

This commit is contained in:
Rendo 2025-07-28 05:07:37 +05:00
commit ed369cf718
24 changed files with 240 additions and 78 deletions

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=56 format=3 uid="uid://dd3yegl1xo44m"]
[gd_scene load_steps=57 format=3 uid="uid://dd3yegl1xo44m"]
[ext_resource type="AudioStream" uid="uid://b6xb6mjdecg6a" path="res://assets/audio/sfx/level/readysetplant.mp3" id="1_4gg2g"]
[ext_resource type="Script" uid="uid://bndu1h5kgcde8" path="res://scripts/level/RuntimeLevelData.cs" id="1_31ltw"]
@ -37,6 +37,7 @@
[ext_resource type="AudioStream" uid="uid://cfybn7wn04frs" path="res://assets/audio/music/Grasswalk_Standard.mp3" id="34_tqd4v"]
[ext_resource type="AudioStream" uid="uid://get7nh1goi1c" path="res://assets/audio/music/Grasswalk_cool.mp3" id="35_4gg2g"]
[ext_resource type="Script" uid="uid://bnj5tlcpmep2o" path="res://scripts/audio/MusicTransitioner.cs" id="36_wwgye"]
[ext_resource type="PackedScene" uid="uid://djfsa0pxqeoq1" path="res://scenes/gui/cursor_canvas_layer.tscn" id="38_wwgye"]
[sub_resource type="Animation" id="Animation_vbgdr"]
resource_name = "CYS_Sequence"
@ -681,6 +682,7 @@ metadata/_edit_lock_ = true
layer = -1
[node name="RuntimeGUI" parent="HUD" instance=ExtResource("4_okro4")]
focus_neighbor_bottom = NodePath("../../GUI/ChooseYourSeeds")
metadata/_edit_lock_ = true
[node name="Overlay" type="CanvasLayer" parent="."]
@ -702,6 +704,7 @@ anchor_top = 1.0
anchor_bottom = 2.0
size_flags_horizontal = 3
size_flags_vertical = 3
focus_neighbor_top = NodePath("../../HUD/RuntimeGUI")
metadata/_edit_lock_ = true
[node name="PauseMenu" parent="GUI" instance=ExtResource("6_4bmqp")]
@ -895,6 +898,8 @@ ignore_time_scale = true
[node name="ReadySetPlantPlayer" type="AudioStreamPlayer" parent="."]
[node name="CursorCanvasLayer" parent="." instance=ExtResource("38_wwgye")]
[connection signal="OnLevelStateChanged" from="Data" to="SunSpawner/Timer" method="OnLevelStateChanged"]
[connection signal="OnLevelStateChanged" from="Data" to="ZombieLevelPrevewer" method="OnLevelStateChanged"]
[connection signal="OnLevelStateChanged" from="Data" to="InitialSpawner" method="OnLevelStateChanged"]