continuing to switch to MapCell orientation
This commit is contained in:
+14
-14
@@ -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);
|
||||
// }
|
||||
// });
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user