feat: Implement Tekton Doors game mode with portal mechanics, add an in-game message bar, and introduce a pre-game countdown.

This commit is contained in:
Yogi Wiguna
2026-02-25 16:58:59 +08:00
parent a157c1efc4
commit 6d41f9dbc6
9 changed files with 513 additions and 8 deletions
+13
View File
@@ -149,6 +149,7 @@ func _ready():
if game_mode_option:
game_mode_option.item_selected.connect(_on_game_mode_selected)
_setup_game_modes()
# Connect LobbyManager signals
LobbyManager.room_list_updated.connect(_on_room_list_updated)
@@ -212,6 +213,18 @@ func _on_server_ip_submitted(new_text: String) -> void:
if server_option and server_option.selected == 1:
NakamaManager.set_server(new_text.strip_edges())
func _setup_game_modes() -> void:
if not game_mode_option: return
game_mode_option.clear()
for mode in LobbyManager.available_game_modes:
game_mode_option.add_item(mode)
# Select current mode
for i in range(game_mode_option.item_count):
if game_mode_option.get_item_text(i) == LobbyManager.game_mode:
game_mode_option.selected = i
break
func _setup_player_slots() -> void:
"""Get references to all player slot nodes."""
player_slots.clear()