private void Draw(SpriteBatch spriteBatch, ICamera2D camera) { spriteBatch.Begin(SpriteSortMode.Texture, BlendState.Additive, transformMatrix: camera.TransformationMatrix); grid.Draw(spriteBatch); player1.Draw(spriteBatch); player2.Draw(spriteBatch); particles.Draw(spriteBatch); spriteBatch.End(); }
public void Draw() { foreach (var wall in _level.Walls) { _drawer.Draw(wall.Boundings, wall.Color, wall.Rotation); } foreach (var block in _level.Blocks) { _drawer.Draw(block.Boundings, block.Color, block.Rotation); } _drawer.Draw(_level.Paddle.Boundings, _level.Paddle.Color, _level.Paddle.Rotation); _drawer.Draw(_level.Ball.Boundings, _level.Ball.Color, _level.Ball.Rotation); _particleManager.Draw(); }