feat: Introduce player character with input management and gridmap interaction visuals.

This commit is contained in:
Yogi Wiguna
2026-03-25 16:20:23 +08:00
parent 5acf40c122
commit a0da22ff5c
5 changed files with 17 additions and 33 deletions
+1 -4
View File
@@ -93,10 +93,7 @@ func handle_unhandled_input(event):
get_viewport().set_input_as_handled()
elif event.is_action_pressed("action_grab_tekton"):
if player.is_carrying_tekton:
if player.powerup_manager and player.powerup_manager.has_method("spawn_boost_reward"):
player.powerup_manager.spawn_boost_reward()
else:
if not player.is_carrying_tekton:
if player.powerup_manager and player.powerup_manager.has_method("can_use_special"):
player.grab_tekton()
get_viewport().set_input_as_handled()