feat: add player entity with comprehensive game state, character selection, and manager integration.

This commit is contained in:
Yogi Wiguna
2026-02-09 14:26:32 +08:00
parent 20e9897481
commit a68878483f
+7
View File
@@ -307,6 +307,13 @@ func _init_managers():
func set_character(character_name: String) -> void:
"""Show only the selected character model and hide others. Updates AnimationPlayer root."""
# Map Lobby names to Model names
match character_name:
"Copper": character_name = "Oldpop"
"Dabro": character_name = "Masbro"
"Pip": character_name = "Bob"
# "Gatot" matches "Gatot"
if character_name not in AVAILABLE_CHARACTERS:
push_warning("Invalid character name: %s" % character_name)
return