feat: Introduce SpecialTilesManager to manage special tile effects, including powerup inventory, leveling, cooldowns, and targeted abilities.

This commit is contained in:
Yogi Wiguna
2026-02-05 10:30:27 +08:00
parent 08b0493c06
commit 18128288d2
5 changed files with 103 additions and 44 deletions
+4 -2
View File
@@ -98,10 +98,12 @@ func handle_unhandled_input(event):
player.activate_powerup(1) # AREA_FREEZE
KEY_KP_4, KEY_4:
player.activate_powerup(3) # INVISIBLE_MODE
KEY_C:
# KEY_R:
# player.auto_put_item()
KEY_Q:
if player.powerup_manager:
player.powerup_manager.use_special_effect()
KEY_V:
KEY_E: # Swapped to E per request
if player.powerup_manager:
if player.powerup_manager.has_method("spawn_boost_reward"):
player.powerup_manager.spawn_boost_reward()