public override void Draw(SpriteBatch spriteBatch) { trail.Draw(spriteBatch); switch (player.Index) { case PlayerIndex.One: spriteBatch.Draw(AssetManager.GetTexture("balls"), ConvertUnits.ToDisplayUnits(Position), new Rectangle(0, 0, 40, 40), Color.White, 0, new Vector2(20.0f, 20.0f), ConvertUnits.ToDisplayUnits(radius) / 20.0f, SpriteEffects.None, 0); break; case PlayerIndex.Two: spriteBatch.Draw(AssetManager.GetTexture("balls"), ConvertUnits.ToDisplayUnits(Position), new Rectangle(40, 0, 40, 40), Color.White, 0, new Vector2(20.0f, 20.0f), ConvertUnits.ToDisplayUnits(radius) / 20.0f, SpriteEffects.None, 0); break; default: break; } }
public override void Draw(SpriteBatch spriteBatch) { trail.Draw(spriteBatch); }