feat: Implement initial main game scene with gridmap, player, and core managers.

This commit is contained in:
Yogi Wiguna
2026-03-12 12:30:29 +08:00
parent 412e7bdcdd
commit 3853962e4a
7 changed files with 1892 additions and 248 deletions
-100
View File
@@ -89,12 +89,6 @@ end_item = 3
immutable_items = Array[int]([4])
metadata/_editor_floor_ = Vector3(0, 0, 0)
[node name="Camera3D" type="Camera3D" parent="." unique_id=1200003163]
transform = Transform3D(1, 0, 0, 0, 0.422618, 0.906308, 0, -0.906308, 0.422618, 7, 22.925, 18.4489)
environment = ExtResource("4_ky38j")
current = true
fov = 35.5
[node name="Camera3D200" type="Camera3D" parent="." unique_id=1763366951]
transform = Transform3D(1, 0, 0, 0, 0.5077037, 0.86153173, 0, -0.86153173, 0.5077037, 7, 32.3, 25.8)
environment = ExtResource("4_ky38j")
@@ -1781,96 +1775,6 @@ custom_minimum_size = Vector2(0, 40)
layout_mode = 2
text = "Back"
[node name="SettingsPanel" type="CanvasLayer" parent="." unique_id=268064562]
process_mode = 3
layer = 11
visible = false
[node name="Background" type="ColorRect" parent="SettingsPanel" unique_id=1148993432]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0, 0, 0, 0.8)
[node name="Panel" type="PanelContainer" parent="SettingsPanel" unique_id=1418717329]
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -200.0
offset_top = -200.0
offset_right = 200.0
offset_bottom = 200.0
grow_horizontal = 2
grow_vertical = 2
[node name="VBox" type="VBoxContainer" parent="SettingsPanel/Panel" unique_id=449477630]
layout_mode = 2
theme_override_constants/separation = 12
alignment = 1
[node name="Title" type="Label" parent="SettingsPanel/Panel/VBox" unique_id=1939206128]
layout_mode = 2
theme_override_font_sizes/font_size = 22
text = "Settings"
horizontal_alignment = 1
[node name="Spacer" type="Control" parent="SettingsPanel/Panel/VBox" unique_id=426750898]
custom_minimum_size = Vector2(0, 10)
layout_mode = 2
[node name="TouchHeader" type="Label" parent="SettingsPanel/Panel/VBox" unique_id=1095783125]
layout_mode = 2
theme_override_font_sizes/font_size = 16
text = "Touch Controls"
[node name="ButtonSizeRow" type="HBoxContainer" parent="SettingsPanel/Panel/VBox" unique_id=1573503465]
layout_mode = 2
[node name="Label" type="Label" parent="SettingsPanel/Panel/VBox/ButtonSizeRow" unique_id=1996113172]
layout_mode = 2
size_flags_horizontal = 3
text = "Button Size"
[node name="ButtonSizeSlider" type="HSlider" parent="SettingsPanel/Panel/VBox/ButtonSizeRow" unique_id=1536868944]
custom_minimum_size = Vector2(150, 0)
layout_mode = 2
min_value = 50.0
max_value = 120.0
value = 70.0
[node name="OpacityRow" type="HBoxContainer" parent="SettingsPanel/Panel/VBox" unique_id=494509398]
layout_mode = 2
[node name="Label" type="Label" parent="SettingsPanel/Panel/VBox/OpacityRow" unique_id=252128874]
layout_mode = 2
size_flags_horizontal = 3
text = "Button Opacity"
[node name="OpacitySlider" type="HSlider" parent="SettingsPanel/Panel/VBox/OpacityRow" unique_id=1673848529]
custom_minimum_size = Vector2(150, 0)
layout_mode = 2
max_value = 1.0
step = 0.1
value = 0.7
[node name="JoystickToggle" type="CheckButton" parent="SettingsPanel/Panel/VBox" unique_id=674311321]
layout_mode = 2
button_pressed = true
text = "Enable Virtual Joystick"
[node name="Spacer2" type="Control" parent="SettingsPanel/Panel/VBox" unique_id=166051520]
custom_minimum_size = Vector2(0, 15)
layout_mode = 2
[node name="BackBtn" type="Button" parent="SettingsPanel/Panel/VBox" unique_id=1290117622]
custom_minimum_size = Vector2(0, 40)
layout_mode = 2
text = "Back"
[node name="ArenaBG" type="Sprite3D" parent="." unique_id=2070634860]
transform = Transform3D(4, 0, 0, 0, 1.8291987, 3.557251, 0, -3.557251, 1.8291987, 6.109789, -30, -4)
texture = ExtResource("37_fuf3a")
@@ -1882,7 +1786,3 @@ region_rect = Rect2(0, 0, 1080, 0)
[connection signal="pressed" from="PauseMenu/Panel/VBox/SettingsBtn" to="." method="_on_settings_pressed"]
[connection signal="pressed" from="PauseMenu/Panel/VBox/QuitBtn" to="." method="_on_quit_match_pressed"]
[connection signal="pressed" from="HowToPlayPanel/Panel/VBox/BackBtn" to="." method="_on_how_to_play_back_pressed"]
[connection signal="value_changed" from="SettingsPanel/Panel/VBox/ButtonSizeRow/ButtonSizeSlider" to="." method="_on_button_size_changed"]
[connection signal="value_changed" from="SettingsPanel/Panel/VBox/OpacityRow/OpacitySlider" to="." method="_on_opacity_changed"]
[connection signal="toggled" from="SettingsPanel/Panel/VBox/JoystickToggle" to="." method="_on_joystick_toggled"]
[connection signal="pressed" from="SettingsPanel/Panel/VBox/BackBtn" to="." method="_on_settings_back_pressed"]