public override void Draw(GameTime gameTime) { Sprites.Begin(0, null, null, null, null, null, Camera.View); for (int i = 0; i < 48; i++) { Sprites.Draw(_grain.Image, ConvertUnits.ToDisplayUnits(_circles[i].Position), null, Color.White, _circles[i].Rotation, _grain.Origin, 1f, SpriteEffects.None, 1f); } Sprites.End(); _walker.Draw(Sprites, Lines, Camera); base.Draw(gameTime); }
public override void Draw(GameTime gameTime) { BatchEffect.View = Camera.View; BatchEffect.Projection = Camera.Projection; SpriteBatch.Begin(SpriteSortMode.Deferred, null, null, null, RasterizerState.CullNone, BatchEffect); for (int i = 0; i < _circles.Length; i++) { SpriteBatch.Draw(_grain.Texture, _circles[i].Position, null, Color.White, _circles[i].Rotation, _grain.Origin, new Vector2(2f * 0.25f) * _grain.TexelSize, SpriteEffects.FlipVertically, 0f); } SpriteBatch.End(); _walker.Draw(SpriteBatch, BatchEffect, LineBatch, Camera); _border.Draw(Camera.Projection, Camera.View); base.Draw(gameTime); }
public override void Draw(GameTime gameTime) { _walker.Draw(); _border.Draw(); base.Draw(gameTime); }
public override void Draw(GameTime gameTime) { _walker.Draw(ScreenManager.BatchEffect, Camera); _border.Draw(); base.Draw(gameTime); }