Esempio n. 1
0
 public void Draw(SpriteBatch spriteBatch, Camera camera)
 {
     Color color = new Color(fade, fade, fade, fade);
     float scale = camera.getTextureScale(_smoke.Width, size);
     spriteBatch.Draw(_smoke, camera.getVisualCoords(position, _smoke.Width, _smoke.Height, scale), null,
                         color, rotation, randomDirection, scale, SpriteEffects.None, 0.1f);
 }
Esempio n. 2
0
 internal float getScale(Camera cam, int width)
 {
     scale = cam.getTextureScale(scale, width);
     return scale;
 }
Esempio n. 3
0
 public void Draw(SpriteBatch spriteBatch, Camera camera)
 {
     float scale = camera.getTextureScale(_splitterTexture.Width, particleSize);
     spriteBatch.Draw(_splitterTexture, camera.getVisualCoords(position, _splitterTexture.Width, _splitterTexture.Height, scale), null, Color.White, 0, randomDirection, scale, SpriteEffects.None, 0.5f);
 }