feat: Implement PlayerActionManager for player actions and grid highlighting, SpecialTilesManager for special tile effects, and add freeze/hover tile meshes.

This commit is contained in:
Yogi Wiguna
2026-03-25 15:47:06 +08:00
parent 0616d3a20a
commit 5a6f704569
4 changed files with 14 additions and 11 deletions
+3 -3
View File
@@ -76,7 +76,7 @@ func highlight_cells_if_authorized(cells_to_highlight: Array, item_id: int = -1)
for cell in cells_to_highlight:
highlighted_cells.append(cell)
# Use Layer 2 for overlay highlights (prevents overwriting walls on Layer 0)
# Use Layer 2 for overlay highlights
enhanced_gridmap.set_cell_item(
Vector3i(cell.x, 2, cell.y),
highlight_item
@@ -181,8 +181,8 @@ func clear_highlights():
# Check Layer 2 (Overlay Highlight)
var l2_pos = Vector3i(cell.x, 2, cell.y)
var l2_item = enhanced_gridmap.get_cell_item(l2_pos)
# Only clear if it is a highlight and NOT a Safe Zone (ID 2)
if l2_item != -1 and l2_item != 2:
# Only clear if it is a highlight and NOT a Safe Zone (ID 2) or Freeze Area (ID 5)
if l2_item != -1 and l2_item != 2 and l2_item != 5:
enhanced_gridmap.set_cell_item(l2_pos, -1)
highlighted_cells.clear()