public override void Ctrl() { base.Ctrl(); if (this.Time == 1) { ParticleBeginBullet particleBeginBullet = new ParticleBeginBullet(this.StageData, this.Position, this.ColorType); particleBeginBullet.Scale = this.MaxScaleW * 0.5f; particleBeginBullet.Active = true; particleBeginBullet.LifeTime = this.LifeTime; this.beginEffect = (BaseEffect)particleBeginBullet; this.beginEffect.SetBinding((BaseObject)this); } if (this.Time == this.UnmatchedTime) { this.ScaleVL = 0.1f; } if (this.Time == this.LifeTime - 8) { this.TransparentVelocity = (float)(-this.MaxTransparent / 8); this.ScaleVL = (float)(-(double)this.ScaleLength / 8.0); } if (this.Time % 8 != 0) { return; } this.Grazed = false; }
public Bullet_BendLaser( StageDataPackage StageData, PointF OriginalPosition, float Velocity, double Direction, byte ColorType, int Length, int Width) : this(StageData, (string)null, OriginalPosition, Velocity, Direction, Length) { this.ColorType = ColorType; ParticleBeginBullet particleBeginBullet = new ParticleBeginBullet(StageData, this.Position, ColorType); particleBeginBullet.Scale = 0.5f; particleBeginBullet.Active = true; Particle3D_BendLaser particle3DBendLaser = new Particle3D_BendLaser(StageData, this.GhostingCount, Width, (int)ColorType); particle3DBendLaser.OriginalPosition = this.OriginalPosition; particle3DBendLaser.LastPoints = this.LastPoints; this.PL = particle3DBendLaser; }
public override void Ctrl() { base.Ctrl(); this.ScaleWidth = (float)this.GetDistance(this.LastPoints[this.LastPoints.Length - 1]) / (float)this.TxtureObject.Width; if (this.Time == 1) { ParticleBeginBullet particleBeginBullet = new ParticleBeginBullet(this.StageData, this.Position, this.ColorType); particleBeginBullet.Scale = 0.5f; particleBeginBullet.Active = true; particleBeginBullet.LifeTime = this.GhostingCount; } if (this.Time % 8 == 0) { this.Grazed = false; } if (!this.LaserHead) { return; } this.HeadTransparent = this.Ran.Next(150, (int)byte.MaxValue); }