continuing to switch to MapCell orientation

This commit is contained in:
2026-07-03 02:16:29 -04:00
parent e6355167e3
commit 336b72e4cb
13 changed files with 81 additions and 82 deletions
+14 -14
View File
@@ -32,21 +32,21 @@ public partial class PlayArea : Node2D
public void HighlightCells()
{
TileMapLayer occupiedSpaces = GetNode<TileMapLayer>("OccupiedSpaces");
_map._cells.ForEach(c =>
{
if (_map.HasOccupant(c))
{
occupiedSpaces.SetCell(c, 0, new Vector2I(4,0));
}
else if (_map._astar.IsPointSolid(c))
{
// _map._cells.ForEach(c =>
// {
// if (_map.HasOccupant(c))
// {
// occupiedSpaces.SetCell(c, 0, new Vector2I(4,0));
// }
// else if (_map._astar.IsPointSolid(c))
// {
}
else
{
occupiedSpaces.SetCell(c, 0, Vector2I.Down*4);
}
});
// }
// else
// {
// occupiedSpaces.SetCell(c, 0, Vector2I.Down*4);
// }
// });
}
}