feat: Add core player input, movement, and special ability management systems with new UI components.

This commit is contained in:
Yogi Wiguna
2026-03-11 17:40:45 +08:00
parent 18c3dbecd6
commit 650d241a72
6 changed files with 104 additions and 90 deletions
+2 -2
View File
@@ -20,7 +20,7 @@ var safe_zone_centers: Array[Vector2i] = []
var safe_zone_spawned: bool = false
# Power-Up Tile Spawning
const POWERUP_TILES = [11, 14] # Speed (11) and Ghost (14)
const POWERUP_TILES = [11, 12, 13, 14] # Speed, Freeze, Wall, Ghost
const POWERUP_SPAWN_COUNT: int = 5 # Number of power-up tiles to spawn
var powerups_spawned: bool = false
var stop_phase_occurred: bool = false
@@ -362,7 +362,7 @@ func _spawn_mission_tiles():
var current_item = gridmap.get_cell_item(Vector3i(x, 1, z))
# PROTECTED FLOOR CHECK: Don't spawn on walls or void
if base_tile in [TILE_OBSTACLE, -1] or current_item == TILE_OBSTACLE or current_item == 13:
if base_tile in [TILE_OBSTACLE, -1] or current_item == TILE_OBSTACLE:
continue
# Spawn tiles with 60% density