feat: Initialize main game scene and add player input and touch control managers.

This commit is contained in:
Yogi Wiguna
2026-02-05 11:57:04 +08:00
parent e2675d782a
commit 597e6d0a56
3 changed files with 119 additions and 139 deletions
+4 -1
View File
@@ -102,12 +102,15 @@ func handle_unhandled_input(event):
# player.auto_put_item()
KEY_Q:
if player.powerup_manager:
# Attack Mode (formerly Special)
player.powerup_manager.use_special_effect()
KEY_E: # Swapped to E per request
KEY_E:
if player.powerup_manager:
# Spawn Boost
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()
# Handle spawn point selection if not yet selected