feat: Add core game scene with manager initialization, a dynamic message bar, scarcity-based tile respawn, and a new star tile asset.

This commit is contained in:
Yogi Wiguna
2026-02-05 12:23:20 +08:00
parent 597e6d0a56
commit 84ca4eb997
5 changed files with 55 additions and 32 deletions
+9 -7
View File
@@ -1075,13 +1075,15 @@ func sync_full_grid_data(data: PackedInt32Array):
func _on_timer_updated(time_remaining: float):
# Update standalone timer display
var time_text = str(int(time_remaining))
var timer_panel = get_node_or_null("GoalsTimer")
if timer_panel:
var timer_label = timer_panel.get_node_or_null("VBox/TimerLabel")
if timer_label:
timer_label.text = time_text
# DISABLED: Now used for PowerUp Cooldown (handled in UIManager)
# var time_text = str(int(time_remaining))
#
# var timer_panel = get_node_or_null("GoalsTimer")
# if timer_panel:
# var timer_label = timer_panel.get_node_or_null("VBox/TimerLabel")
# if timer_label:
# timer_label.text = time_text
pass
func _on_score_updated(peer_id: int, new_score: int):
# Update player's score display
+7 -17
View File
@@ -9496,25 +9496,15 @@ text = "0"
horizontal_alignment = 2
[node name="GoalsTimer" type="PanelContainer" parent="." unique_id=2106663301]
offset_left = 145.0
offset_top = 28.0
offset_right = 222.0
offset_bottom = 105.0
offset_left = 160.0
offset_top = 130.0
offset_right = 192.0
offset_bottom = 158.0
[node name="VBox" type="VBoxContainer" parent="GoalsTimer" unique_id=231693109]
[node name="TimerLabel" type="Label" parent="GoalsTimer" unique_id=466345203]
layout_mode = 2
alignment = 1
[node name="TimerLabel" type="Label" parent="GoalsTimer/VBox" unique_id=466345203]
layout_mode = 2
theme_override_font_sizes/font_size = 32
text = "60"
horizontal_alignment = 1
[node name="SuffixLabel" type="Label" parent="GoalsTimer/VBox" unique_id=1276360987]
layout_mode = 2
theme_override_font_sizes/font_size = 12
text = "seconds"
theme_override_font_sizes/font_size = 14
text = "00"
horizontal_alignment = 1
[node name="GlobalMatchTimer" type="PanelContainer" parent="." unique_id=1714357974]