コード例 #1
0
ファイル: SmokeParticle.cs プロジェクト: kn222gp/1DV437
 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);
 }
コード例 #2
0
ファイル: SplitterParticle.cs プロジェクト: kn222gp/1DV437
 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);
 }