feat: add player entity with comprehensive game state, character selection, and manager integration.
This commit is contained in:
@@ -307,6 +307,13 @@ func _init_managers():
|
|||||||
|
|
||||||
func set_character(character_name: String) -> void:
|
func set_character(character_name: String) -> void:
|
||||||
"""Show only the selected character model and hide others. Updates AnimationPlayer root."""
|
"""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:
|
if character_name not in AVAILABLE_CHARACTERS:
|
||||||
push_warning("Invalid character name: %s" % character_name)
|
push_warning("Invalid character name: %s" % character_name)
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user