feat: implement main game scene with dynamic manager initialization and arena background support

This commit is contained in:
Yogi Wiguna
2026-03-30 17:08:04 +08:00
parent fb20af1ae5
commit 7c4c799e2b
+7 -2
View File
@@ -1115,6 +1115,12 @@ func _create_tekton(pos: Vector2i, tekton_id: int, is_static: bool = false):
func _precalculate_static_positions():
"""Calculate and reserve Static Tekton positions early."""
if not multiplayer.is_server(): return
# Static Tekton stands only exist in Free Mode
if LobbyManager.game_mode == "Stop n Go":
reserved_static_positions = []
return
var enhanced_gridmap = $EnhancedGridMap
if not enhanced_gridmap: return
@@ -2241,8 +2247,7 @@ func _show_game_over_panel():
var rematch_label = Label.new()
rematch_label.name = "RematchVoteLabel"
var required_votes = max(1, ceili(LobbyManager.players_in_room.size() / 2.0))
rematch_label.text = "0/%d" % required_votes
rematch_label.text = "0/2"
rematch_label.add_theme_font_size_override("font_size", 24)
rematch_label.add_theme_color_override("font_color", Color(0.7, 0.7, 0.7))
rematch_container.add_child(rematch_label)