feat: Add main game scene with core logic, manager initialization, UI setup, and an in-game message bar.

This commit is contained in:
Yogi Wiguna
2026-02-03 14:48:41 +08:00
parent 16a46d7e76
commit 02d13d9ff5
13 changed files with 257 additions and 279 deletions
+53 -61
View File
@@ -22,9 +22,13 @@
[ext_resource type="StyleBox" uid="uid://d3ruc8gytoovx" path="res://assets/styles/ribbon_selected_gui.tres" id="18_u5x6e"]
[ext_resource type="StyleBox" uid="uid://cdhnwvcklbyl8" path="res://assets/styles/ribbon_hovered_gui.tres" id="19_w1rqq"]
[ext_resource type="StyleBox" uid="uid://3yog1weaqhxb" path="res://assets/styles/ribbon_unselected_gui.tres" id="20_q6bc1"]
[ext_resource type="Texture2D" uid="uid://ba80xnybpixw2" path="res://assets/graphics/touch_control/take_tile.png" id="25_qkpxi"]
[ext_resource type="Texture2D" uid="uid://bsgqrjx2ity4c" path="res://assets/graphics/touch_control/speed.png" id="26_2f3dj"]
[ext_resource type="Texture2D" uid="uid://pwxo4lb87yi" path="res://assets/graphics/touch_control/put_tile.png" id="26_5q0nq"]
[ext_resource type="Texture2D" uid="uid://umw3e8nfe3vr" path="res://assets/graphics/touch_control/attack_mode.png" id="27_dgi5k"]
[ext_resource type="Texture2D" uid="uid://cupfmb5m15kmf" path="res://assets/graphics/touch_control/wall.png" id="27_yq6so"]
[ext_resource type="Texture2D" uid="uid://3up2su2e0lfa" path="res://assets/graphics/touch_control/freeze_area.png" id="28_fv21b"]
[ext_resource type="Texture2D" uid="uid://ckhdyxnho6sjp" path="res://assets/graphics/touch_control/spawn_tile.png" id="28_j8jky"]
[ext_resource type="Script" uid="uid://86ikh0wuqk7v" path="res://scripts/ui/powerup_inventory_ui.gd" id="powerup_ui_script"]
[ext_resource type="Script" uid="uid://b54tfa0n6kogi" path="res://scripts/managers/touch_controls.gd" id="touch_manager"]
[ext_resource type="Script" uid="uid://djiml4sh61dc1" path="res://scripts/ui/virtual_joystick.gd" id="virtual_joystick"]
@@ -9718,7 +9722,7 @@ anchor_bottom = 1.0
offset_top = 318.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 1
mouse_filter = 2
[node name="VirtualJoystick" type="Control" parent="TouchControls/TouchControls" unique_id=1983608919]
layout_mode = 1
@@ -9745,7 +9749,10 @@ offset_right = -233.0
offset_bottom = -179.0
grow_horizontal = 0
grow_vertical = 0
text = "👋"
focus_mode = 0
icon = ExtResource("25_qkpxi")
flat = true
expand_icon = true
[node name="PutBtn" type="Button" parent="TouchControls/TouchControls" unique_id=1027790362]
layout_mode = 1
@@ -9760,7 +9767,10 @@ offset_right = -153.0
offset_bottom = -99.0
grow_horizontal = 0
grow_vertical = 0
text = "📦"
focus_mode = 0
icon = ExtResource("26_5q0nq")
flat = true
expand_icon = true
[node name="SpecialBtn" type="Button" parent="TouchControls/TouchControls" unique_id=1380511463]
layout_mode = 1
@@ -9775,7 +9785,10 @@ offset_right = -153.0
offset_bottom = -253.0
grow_horizontal = 0
grow_vertical = 0
text = "⚡"
focus_mode = 0
icon = ExtResource("27_dgi5k")
flat = true
expand_icon = true
[node name="SpawnBoostBtn" type="Button" parent="TouchControls/TouchControls" unique_id=1566173505]
layout_mode = 1
@@ -9790,7 +9803,10 @@ offset_right = -73.0
offset_bottom = -171.0
grow_horizontal = 0
grow_vertical = 0
text = "🚀"
icon = ExtResource("28_j8jky")
flat = true
icon_alignment = 1
expand_icon = true
[node name="SettingsBtn" type="Button" parent="TouchControls/TouchControls" unique_id=1964422444]
layout_mode = 1
@@ -9827,72 +9843,48 @@ layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_right = 212.0
offset_bottom = 50.0
offset_top = 2.0
offset_right = 237.07463
offset_bottom = 58.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/separation = 15
theme_override_constants/separation = 10
[node name="CoinIcon" type="TextureRect" parent="PowerUpInventoryUI/HBoxContainer" unique_id=341904386]
[node name="SpeedBtn" type="Button" parent="PowerUpInventoryUI/HBoxContainer" unique_id=1549270030]
layout_mode = 2
texture = ExtResource("26_2f3dj")
expand_mode = 2
size_flags_horizontal = 3
focus_mode = 0
icon = ExtResource("26_2f3dj")
flat = true
icon_alignment = 1
expand_icon = true
[node name="SelectRect" type="TextureRect" parent="PowerUpInventoryUI/HBoxContainer/CoinIcon" unique_id=961231613]
visible = false
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("8_8meci")
[node name="HeartIcon" type="TextureRect" parent="PowerUpInventoryUI/HBoxContainer" unique_id=61328923]
[node name="WallBtn" type="Button" parent="PowerUpInventoryUI/HBoxContainer" unique_id=863365575]
layout_mode = 2
texture = ExtResource("27_yq6so")
expand_mode = 2
size_flags_horizontal = 3
focus_mode = 0
icon = ExtResource("27_yq6so")
flat = true
icon_alignment = 1
expand_icon = true
[node name="SelectRect" type="TextureRect" parent="PowerUpInventoryUI/HBoxContainer/HeartIcon" unique_id=772732397]
visible = false
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("8_8meci")
[node name="DiamondIcon" type="TextureRect" parent="PowerUpInventoryUI/HBoxContainer" unique_id=1830849071]
[node name="FreezeAreaBtn" type="Button" parent="PowerUpInventoryUI/HBoxContainer" unique_id=1087493560]
layout_mode = 2
texture = ExtResource("28_fv21b")
expand_mode = 2
size_flags_horizontal = 3
focus_mode = 0
icon = ExtResource("28_fv21b")
flat = true
icon_alignment = 1
expand_icon = true
[node name="SelectRect" type="TextureRect" parent="PowerUpInventoryUI/HBoxContainer/DiamondIcon" unique_id=439518389]
visible = false
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("8_8meci")
[node name="StarIcon" type="TextureRect" parent="PowerUpInventoryUI/HBoxContainer" unique_id=1468665065]
visible = false
[node name="GhostBtn" type="Button" parent="PowerUpInventoryUI/HBoxContainer" unique_id=2041811828]
layout_mode = 2
texture = ExtResource("9_i0gbs")
expand_mode = 2
[node name="SelectRect" type="TextureRect" parent="PowerUpInventoryUI/HBoxContainer/StarIcon" unique_id=1393132163]
visible = false
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("8_8meci")
size_flags_horizontal = 3
focus_mode = 0
icon = ExtResource("27_dgi5k")
flat = true
icon_alignment = 1
expand_icon = true
[connection signal="pressed" from="Menu/Host" to="." method="_on_host_pressed"]
[connection signal="pressed" from="Menu/Join" to="." method="_on_join_pressed"]