feat: Add core player entity with movement, race, input, character selection, and multiplayer synchronization, integrating various game managers.

This commit is contained in:
Yogi Wiguna
2026-02-23 15:57:41 +08:00
parent 8a5c25be23
commit 3a5e6ad703
4 changed files with 54 additions and 66 deletions
+3 -2
View File
@@ -1594,13 +1594,14 @@ func _on_global_timer_updated(time_remaining: float):
@rpc("any_peer", "call_local", "reliable")
func sync_game_end_stop_n_go(winner_id: int):
print("[STOP n GO] Game ended! Winner: ", winner_id)
var winner_name = "Player " + str(winner_id)
var player_node = get_node_or_null(str(winner_id))
if player_node:
winner_name = player_node.display_name
# Broadcast win
add_message_to_bar("WINNER", winner_name + " Reached the Finish Line!", MessageType.GOAL)
# Broadcast win (Validation already done in check_win_condition)
add_message_to_bar("MATCH COMPLETE", winner_name + " Wins with 3 Missions!", MessageType.GOAL)
# Stop logic
if stop_n_go_manager: