feat: implement main game scene with dynamic manager initialization and arena background support
This commit is contained in:
+7
-2
@@ -1115,6 +1115,12 @@ func _create_tekton(pos: Vector2i, tekton_id: int, is_static: bool = false):
|
|||||||
func _precalculate_static_positions():
|
func _precalculate_static_positions():
|
||||||
"""Calculate and reserve Static Tekton positions early."""
|
"""Calculate and reserve Static Tekton positions early."""
|
||||||
if not multiplayer.is_server(): return
|
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
|
var enhanced_gridmap = $EnhancedGridMap
|
||||||
if not enhanced_gridmap: return
|
if not enhanced_gridmap: return
|
||||||
|
|
||||||
@@ -2241,8 +2247,7 @@ func _show_game_over_panel():
|
|||||||
|
|
||||||
var rematch_label = Label.new()
|
var rematch_label = Label.new()
|
||||||
rematch_label.name = "RematchVoteLabel"
|
rematch_label.name = "RematchVoteLabel"
|
||||||
var required_votes = max(1, ceili(LobbyManager.players_in_room.size() / 2.0))
|
rematch_label.text = "0/2"
|
||||||
rematch_label.text = "0/%d" % required_votes
|
|
||||||
rematch_label.add_theme_font_size_override("font_size", 24)
|
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_label.add_theme_color_override("font_color", Color(0.7, 0.7, 0.7))
|
||||||
rematch_container.add_child(rematch_label)
|
rematch_container.add_child(rematch_label)
|
||||||
|
|||||||
Reference in New Issue
Block a user