feat: Introduce an EnhancedGridMap with advanced generation, randomization, pathfinding, and data serialization, along with new player, powerup, and portal managers.

This commit is contained in:
Yogi Wiguna
2026-03-04 17:40:10 +08:00
parent 8f03cc15c5
commit cd7881bc3f
12 changed files with 128 additions and 107 deletions
+3 -16
View File
@@ -120,26 +120,13 @@ func handle_unhandled_input(event):
player.enter_attack_mode()
KEY_E:
if player.powerup_manager:
# Spawn Boost
if player.is_carrying_tekton and player.powerup_manager:
# Spawn Boost (Now uses Tekton)
if player.powerup_manager.has_method("spawn_boost_reward"):
player.powerup_manager.spawn_boost_reward()
else:
# Fallback if method missing
player.powerup_manager.use_special_effect()
KEY_G:
if player.is_carrying_tekton:
if player.powerup_manager and player.powerup_manager.can_use_special():
player.throw_tekton()
player.powerup_manager.reset_boost()
else:
if not player.is_carrying_tekton:
player.grab_tekton()
KEY_B:
if player.powerup_manager and player.powerup_manager.can_use_special():
if player.has_method("_find_nearby_tekton") and player._find_nearby_tekton():
player.knock_tekton()
elif player.has_method("enter_knock_mode"):
player.enter_knock_mode()
# Handle spawn point selection if not yet selected