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
+2 -5
View File
@@ -387,12 +387,9 @@ func spawn_tiles_around(count: int = 4):
if roll < 0.6:
# 60% Normal Tile (7-10)
item_id = rng.randi_range(7, 10)
elif roll < 0.9:
# 30% PowerUp (11-14)
item_id = rng.randi_range(11, 14)
else:
# 10% Obstacle/Trap (optional)
item_id = -1 # Clear?
# 40% PowerUp (11-14)
item_id = rng.randi_range(11, 14)
if item_id != -1:
var main = get_tree().get_root().get_node_or_null("Main")