public void Draw(SpriteBatch spriteBatch, Camera camera)
 {
     spriteBatch.Begin();
     foreach (SmokeParticle particle in particles)
     {
         particle.Draw(spriteBatch, camera);
     }
     spriteBatch.End();
 }
 public void Draw(SpriteBatch spriteBatch, Camera camera)
 {
     float scale = camera.Scale(this);
     Color color = new Color(fade, fade, fade, fade);
     spriteBatch.Draw(_smoke, camera.convertToVisualCoords(position, this), null, color, rotation, randomDirection, scale, SpriteEffects.None, 0);
 }
Esempio n. 3
0
 public void Draw(SpriteBatch spriteBatch, Camera camera)
 {
     Color color = new Color(fade, fade, fade, fade);
     spriteBatch.Draw(_smoke, camera.getVisualCoords(position, _smoke), null,
                         color, rotation, randomDirection, camera.getTextureScale(_smoke, size), SpriteEffects.None, 0);
 }