public override void Render(GameTime gameTime, SpriteBatch _spriteBatch) { foreach (Vector2 position in Game1.CalculateRenderPosition(Game1.getWithinField(Position))) { BehaviourUtil.RenderCircle(_spriteBatch, position, 5, Color.Black); } }
public override void Render(GameTime gameTime, SpriteBatch _spriteBatch) { if (Settings.RenderObstacles) { Vector2 topleft = new Vector2(Position.X, Position.Y); foreach (Vector2 position in Game1.CalculateRenderPosition(topleft)) { BehaviourUtil.RenderCircle(_spriteBatch, position, Radius, Color.Green); } } }