예제 #1
0
        public override void HitCheckAll()
        {
            base.HitCheckAll();
            if (!this.HitCheck((BaseObject)this.MyPlane))
            {
                return;
            }
            this.ItemList.Remove((BaseItem)this);
            float power = (float)this.MyPlane.Power;

            this.MyPlane.Power += 100;
            this.StageData.SoundPlay("se_item00.wav", this.OriginalPosition.X / (float)this.BoundRect.Width);
            if ((double)power != (double)this.MyPlane.Power)
            {
                this.StageData.SoundPlay("se_powerup.wav");
            }
            int num = (5000 + this.MyPlane.GreenPoint / 2) / 10 * 10;

            this.MyPlane.Score += (long)num;
            ParticleScoreValue particleScoreValue = new ParticleScoreValue(this.StageData, this.OriginalPosition, (long)num);

            if (this.Doubled)
            {
                particleScoreValue.ColorValue = Color.FromArgb(254, 222, 63);
            }
        }
예제 #2
0
        public override void HitCheckAll()
        {
            base.HitCheckAll();
            if (!this.HitCheck((BaseObject)this.MyPlane))
            {
                return;
            }
            this.ItemList.Remove((BaseItem)this);
            float power = (float)this.MyPlane.Power;

            this.MyPlane.Power += 2;
            if ((double)power != (double)this.MyPlane.Power && this.MyPlane.Power % 100 == 0)
            {
                this.StageData.SoundPlay("se_powerup.wav");
            }
            int num = this.MyPlane.Power == 400 ? 51200 : 10;

            this.MyPlane.Score     += (long)num;
            this.MyPlane.StarPoint += 20;
            if (this.MyPlane.Power == 400)
            {
                ParticleScoreValue particleScoreValue = new ParticleScoreValue(this.StageData, this.OriginalPosition, (long)num);
            }
            this.StageData.SoundPlay("se_item00.wav", this.OriginalPosition.X / (float)this.BoundRect.Width);
        }
예제 #3
0
        public override void HitCheckAll()
        {
            base.HitCheckAll();
            if (!this.HitCheck((BaseObject)this.MyPlane))
            {
                return;
            }
            this.ItemList.Remove((BaseItem)this);
            long ScoreValue;

            if (this.Doubled)
            {
                ScoreValue = (long)((double)this.MyPlane.HighItemScore * (double)this.MyPlane.Rate) / 10L * 10L;
                new ParticleScoreValue(this.StageData, this.OriginalPosition, ScoreValue).ColorValue = Color.FromArgb(254, 222, 63);
            }
            else
            {
                ScoreValue = (long)(10 + (this.MyPlane.HighItemScore - 10) * (448 - (int)this.OriginalPosition.Y) / 320) / 10L * 10L;
                ParticleScoreValue particleScoreValue = new ParticleScoreValue(this.StageData, this.OriginalPosition, ScoreValue);
            }
            this.MyPlane.Score     += ScoreValue;
            this.MyPlane.StarPoint += 20;
            this.StageData.SoundPlay("se_item00.wav", this.OriginalPosition.X / (float)this.BoundRect.Width);
        }