public MotherBombBullet(Vector2 startingPoint, float speed, float direction, float maxDistance) : base(startingPoint, speed, direction, maxDistance) { this.damage = 400; this.originalSpeed = speed; this.baseSpeed = 15; this.grenadeDistance = 0.3f * OGE.WorldCamera.Width; this.texture = OGE.Content.Load<Texture2D>(@"Graphics\Entities\Bullets\RedGrenade"); this.baseMask = new HitboxMask(texture.Height, texture.Height, texture.Height / 2, texture.Height / 2); Particle particlePrototype = new Particle(); particlePrototype.ParticleColor = new Color(255, 60, 50); particlePrototype.DeltaScale = -0.1f; particlePrototype.DeltaSpeed = -0.1f; this.trailParticleGenerator = new TrailParticleGenerator(OGE.CurrentWorld.TrailEffectSystem, particlePrototype); this.trailParticleGenerator.Angle = direction + 180; this.trailParticleGenerator.ParticleTexture = ParticleTextureType.BlurredCircle; this.trailParticleGenerator.Speed = 2f; this.trailParticleGenerator.Scale = 0.5f; this.ExplosionColor = new Color(255, 60, 50); this.ExplosionRadius = 180; this.ExplosionPower = 20; }
public virtual IMask Clone() { Mask clonedMask = new Mask(); clonedMask.Type = Type; return clonedMask; }
public BulletGrenadeBullet(Vector2 startingPoint, float speed, float direction, float maxDistance) : base(startingPoint, speed, direction, maxDistance) { this.damage = 0; this.originalSpeed = speed; Particle particlePrototype = new Particle(); particlePrototype.ParticleColor = new Color(255, 250, 50); particlePrototype.DeltaScale = -0.1f; particlePrototype.DeltaSpeed = -0.1f; this.trailParticleGenerator = new TrailParticleGenerator(OGE.CurrentWorld.TrailEffectSystem, particlePrototype); this.trailParticleGenerator.Angle = direction + 180; this.trailParticleGenerator.ParticleTexture = ParticleTextureType.BlurredCircle; this.trailParticleGenerator.Speed = 2f; this.trailParticleGenerator.Scale = 0.5f; this.texture = OGE.Content.Load<Texture2D>(@"Graphics\Entities\Bullets\YellowBullet"); this.baseMask = new HitboxMask(texture.Height, texture.Height, texture.Height / 2, texture.Height / 2); this.bulletSpeed = 15; }