feat: Implement core player entity with multiplayer state synchronization, character selection, movement, and manager-based input.

This commit is contained in:
Yogi Wiguna
2026-02-26 16:55:36 +08:00
parent 3a902aa3d7
commit 8e0aa322de
3 changed files with 41 additions and 22 deletions
+3 -5
View File
@@ -138,12 +138,10 @@ func handle_unhandled_input(event):
player.grab_tekton()
KEY_B:
if player.powerup_manager and player.powerup_manager.can_use_special():
if player.has_method("enter_knock_mode"):
player.enter_knock_mode()
player.powerup_manager.reset_boost()
else:
if player.has_method("_find_nearby_tekton") and player._find_nearby_tekton():
player.knock_tekton()
player.powerup_manager.reset_boost()
elif player.has_method("enter_knock_mode"):
player.enter_knock_mode()
# Handle spawn point selection if not yet selected