feat: Create player input and powerup managers to handle player interactions, movement, actions, targeting, and boost meter mechanics.

This commit is contained in:
Yogi Wiguna
2026-03-05 14:29:34 +08:00
parent ebfa8f99a7
commit fb6d9df5db
7 changed files with 51 additions and 48 deletions
+3 -3
View File
@@ -441,14 +441,14 @@ func spawn_powerups_around(center: Vector2i, force_powerups: bool = true, only_c
var mode = LobbyManager.get_game_mode()
if only_common or LobbyManager.is_game_mode(GameMode.Mode.STOP_N_GO):
# Spawn ONLY goals (7-10) for Stop n Go or if forced
# Spawn ONLY common tiles (7-10) for Stop n Go or if forced
item_id = rng.randi_range(7, 10)
else:
# Free mode: 60% Chance for Normal Tile (7-10), 40% for PowerUp
# Free mode: 60% Chance for Common Tile (7-10), 40% for PowerUp
if rng.randf() < 0.6:
item_id = rng.randi_range(7, 10)
else:
# 30% Chance for PowerUp (Speed 11, Freeze 12, Ghost 14 - Exclude Wall 13 in restricted modes)
# 40% Chance for PowerUp
var is_restricted = GameMode.is_restricted(mode)
if is_restricted:
item_id = [11, 14].pick_random()