public HealthRecoveryPlanetXna(PlanesGame game, HealthRecoveryPlanet healthRecoveryPlanet, CoordinatesTransformer coordinatesTransformer) : base(game, healthRecoveryPlanet, coordinatesTransformer) { m_particlesEmitter = new SymmetricParticlesEmitter(game.GameManager.GameWorldXna) { PositionDeviationRadius = 6, VelocityDeviationRadius = 4, AlphaVelocityDeviationFactor = 0.5 }; }
public LaserGunXna(PlanesGame game, LaserGun weapon, CoordinatesTransformer coordinatesTransformer) : base(game, weapon, coordinatesTransformer) { m_particlesEmitter = new SymmetricParticlesEmitter(game.GameManager.GameWorldXna) { PositionDeviationRadius = 0.4, VelocityDeviationRadius = 3, AlphaVelocityDeviationFactor = 0.3 }; }
public LaserBulletXna(PlanesGame game, LaserBullet bullet, CoordinatesTransformer coordinatesTransformer) : base(game, bullet, coordinatesTransformer) { var sound = game.GameManager.GameWorldXna.SoundManager.CreateBasicSoundEffect("bullet_sound"); sound.Position = bullet.Position; sound.Play(); m_particlesEmitter = new SymmetricParticlesEmitter(game.GameManager.GameWorldXna); m_trailDrawer = new TrailDrawer(game.Content.Load <Texture2D>("Other/line_3px"), coordinatesTransformer, Color.White, 0.3, 0.2f, 0.05f, 15, 3); }
public BonusXna(PlanesGame game, Bonus bonus, CoordinatesTransformer coordinatesTransformer, Color color, Texture2D texture) : base(game, bonus, coordinatesTransformer) { Bonus = bonus; Color = color; m_texture = texture; m_emitter = new SymmetricParticlesEmitter(game.GameManager.GameWorldXna) { PositionDeviationRadius = Bonus.RelativeGeometry.BoundingRectangle.LongSide * 2.0 / 3.0, VelocityDeviationRadius = 10, AlphaVelocityDeviationFactor = 0.3 }; }