示例#1
0
 public void Draw(Texture2D tex)
 {
     foreach (var p in Particles)
     {
         byte a = (byte)(255 * alpha(p));
         GraphicsUtils.DrawBallTex(tex, p.Position, p.Radius, p.Rotation, a);
     }
 }
示例#2
0
 public override void Draw(GameTime time, Microsoft.Xna.Framework.Graphics.SpriteBatch spriteBatch)
 {
     //Utilities.GraphicsUtils.DrawBall(Position, Radius, _playerColor, 255);
     GraphicsUtils.DrawBallTex(ContentRepository.Repository["shipbrick"], Position, Radius, this.Rotation, 255);
 }