feat: Initialize main game scene and add player input and touch control managers.

This commit is contained in:
Yogi Wiguna
2026-02-05 11:57:04 +08:00
parent e2675d782a
commit 597e6d0a56
3 changed files with 119 additions and 139 deletions
+36 -69
View File
@@ -9518,14 +9518,10 @@ text = "seconds"
horizontal_alignment = 1
[node name="GlobalMatchTimer" type="PanelContainer" parent="." unique_id=1714357974]
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -80.0
offset_top = 24.0
offset_right = 80.0
offset_bottom = 74.0
grow_horizontal = 2
offset_left = 48.0
offset_top = 64.0
offset_right = 208.0
offset_bottom = 114.0
[node name="VBox" type="VBoxContainer" parent="GlobalMatchTimer" unique_id=24429117]
layout_mode = 2
@@ -9712,7 +9708,6 @@ layout_mode = 2
text = "Back"
[node name="TouchControls" type="CanvasLayer" parent="." unique_id=1390485948]
layer = 10
script = ExtResource("touch_manager")
[node name="TouchControls" type="Control" parent="TouchControls" unique_id=1539594058]
@@ -9726,6 +9721,7 @@ grow_vertical = 2
mouse_filter = 2
[node name="VirtualJoystick" type="Control" parent="TouchControls/TouchControls" unique_id=1983608919]
visible = false
layout_mode = 1
anchors_preset = 2
anchor_top = 1.0
@@ -9737,79 +9733,50 @@ offset_bottom = -120.0
grow_vertical = 0
script = ExtResource("virtual_joystick")
[node name="GrabBtn" type="Button" parent="TouchControls/TouchControls" unique_id=914810452]
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -303.0
offset_top = -249.0
offset_right = -233.0
offset_bottom = -179.0
grow_horizontal = 0
grow_vertical = 0
focus_mode = 0
icon = ExtResource("25_qkpxi")
flat = true
expand_icon = true
[node name="ActionsBtn" type="HBoxContainer" parent="TouchControls/TouchControls" unique_id=1921269452]
layout_mode = 0
offset_left = 24.0
offset_top = 58.0
offset_right = 231.0
offset_bottom = 123.25
theme_override_constants/separation = 15
[node name="PutBtn" type="Button" parent="TouchControls/TouchControls" unique_id=1027790362]
[node name="PutBtn" type="Button" parent="TouchControls/TouchControls/ActionsBtn" unique_id=1027790362]
visible = false
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -223.0
offset_top = -169.0
offset_right = -153.0
offset_bottom = -99.0
grow_horizontal = 0
grow_vertical = 0
layout_mode = 2
size_flags_horizontal = 3
focus_mode = 0
icon = ExtResource("26_5q0nq")
flat = true
icon_alignment = 1
expand_icon = true
[node name="SpecialBtn" type="Button" parent="TouchControls/TouchControls" unique_id=1380511463]
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -223.0
offset_top = -323.0
offset_right = -153.0
offset_bottom = -253.0
grow_horizontal = 0
grow_vertical = 0
[node name="AttackModeBtn" type="Button" parent="TouchControls/TouchControls/ActionsBtn" unique_id=1380511463]
layout_mode = 2
size_flags_horizontal = 3
focus_mode = 0
icon = ExtResource("27_dgi5k")
flat = true
icon_alignment = 1
expand_icon = true
[node name="SpawnBoostBtn" type="Button" parent="TouchControls/TouchControls" unique_id=1566173505]
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -143.0
offset_top = -241.0
offset_right = -73.0
offset_bottom = -171.0
grow_horizontal = 0
grow_vertical = 0
[node name="SpawnBoostBtn" type="Button" parent="TouchControls/TouchControls/ActionsBtn" unique_id=1566173505]
layout_mode = 2
size_flags_horizontal = 3
icon = ExtResource("28_j8jky")
flat = true
icon_alignment = 1
expand_icon = true
[node name="GrabBtn" type="Button" parent="TouchControls/TouchControls/ActionsBtn" unique_id=914810452]
layout_mode = 2
size_flags_horizontal = 3
focus_mode = 0
icon = ExtResource("25_qkpxi")
flat = true
icon_alignment = 1
expand_icon = true
[node name="SettingsBtn" type="Button" parent="TouchControls/TouchControls" unique_id=1964422444]
layout_mode = 1
anchors_preset = 3
@@ -9817,10 +9784,10 @@ anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -1337.0
offset_top = -83.0
offset_right = -1287.0
offset_bottom = -33.0
offset_left = -70.0
offset_top = -80.0
offset_right = -22.0
offset_bottom = -32.0
grow_horizontal = 0
grow_vertical = 0
text = "⚙"