Exemple #1
0
 public void DebugDraw(ShapeRenderer shapeRenderer, LevelImp level, Vector2 offset)
 {
     foreach (var placeNode in _nodesByTilePosition)
     {
         if (!placeNode.Value.IsReachable && !placeNode.Value.IsBoxToDestroy)
         {
             continue;
         }
         var start = level.GetWorldFromTilePosition(placeNode.Value.TilePosition) + offset;
         shapeRenderer.DrawFilledRectangle((int)start.X, (int)start.Y, 32, 32, (placeNode.Value.IsBoxToDestroy ? Color.Orange : Color.Red) * 0.5f);
     }
 }