Exemple #1
0
        public static void ShootItem(
            StageDataPackage StageData,
            string BPicName,
            PointF OriginalPosition,
            float Scale)
        {
            bool[,] bulletPic = StageData.GlobalData.BulletPicDictionary[BPicName];
            float num1 = Scale;
            int   num2 = (int)Math.Sqrt((double)bulletPic.Length);

            for (int index1 = 0; index1 < num2; ++index1)
            {
                for (int index2 = 0; index2 < num2; ++index2)
                {
                    if (bulletPic[index1, index2])
                    {
                        PointF OriginalPosition1 = new PointF(OriginalPosition.X + (float)(index1 - num2 / 2) * num1 + (float)StageData.Ran.Next(-2, 3), OriginalPosition.Y + (float)(index2 - num2 / 2) * num1 + (float)StageData.Ran.Next(-2, 3));
                        if (StageData.Ran.Next(100) < 60)
                        {
                            ScoreItem_Touhou scoreItemTouhou = new ScoreItem_Touhou(StageData, OriginalPosition1);
                        }
                        else
                        {
                            PowerItem_Touhou powerItemTouhou = new PowerItem_Touhou(StageData, OriginalPosition1);
                        }
                    }
                }
            }
        }
Exemple #2
0
 public override void GiveItems()
 {
     if (this.ColorType == (byte)0 || this.ColorType == (byte)2)
     {
         PointF     OriginalPosition = new PointF();
         ref PointF local            = ref OriginalPosition;
         PointF     originalPosition = this.OriginalPosition;
         double     num1             = (double)originalPosition.X + (double)this.Ran.Next(-5, 5);
         originalPosition = this.OriginalPosition;
         double num2 = (double)originalPosition.Y + (double)this.Ran.Next(-5, 5);
         local = new PointF((float)num1, (float)num2);
         PowerItem_Touhou powerItemTouhou = new PowerItem_Touhou(this.StageData, OriginalPosition);
     }
Exemple #3
0
        public override void GiveItems()
        {
            PointF OriginalPosition = new PointF();

            for (int index = 0; index < this.RedCount; ++index)
            {
                ref PointF local            = ref OriginalPosition;
                PointF     originalPosition = this.OriginalPosition;
                double     num1             = (double)originalPosition.X + (double)this.Ran.Next(-this.RedCount * 5, this.RedCount * 5);
                originalPosition = this.OriginalPosition;
                double num2 = (double)originalPosition.Y + (double)this.Ran.Next(-this.RedCount * 5, this.RedCount * 5);
                local = new PointF((float)num1, (float)num2);
                PowerItem_Touhou powerItemTouhou = new PowerItem_Touhou(this.StageData, OriginalPosition);
            }
Exemple #4
0
        public override void Miss()
        {
            double num1 = -2.27079631487397;

            for (int index = 0; index < 8; ++index)
            {
                PointF     OriginalPosition = new PointF();
                ref PointF local            = ref OriginalPosition;
                PointF     originalPosition = this.OriginalPosition;
                double     num2             = (double)(originalPosition.X + (float)(40.0 * Math.Cos(num1)));
                originalPosition = this.OriginalPosition;
                double num3 = (double)(originalPosition.Y + (float)(40.0 * Math.Sin(num1)));
                local = new PointF((float)num2, (float)num3);
                PowerItem_Touhou powerItemTouhou = new PowerItem_Touhou(this.StageData, OriginalPosition);
                powerItemTouhou.Direction = num1;
                powerItemTouhou.Velocity  = 5f;
                num1 += 0.19999999659402;
            }
Exemple #5
0
 public override void GiveItems()
 {
     if (this.MyPlane.Power < 400)
     {
         PointF OriginalPosition;
         for (int index = 0; index < 15; ++index)
         {
             OriginalPosition = new PointF(this.OriginalPosition.X + (float)this.Ran.Next(-49, 50), this.OriginalPosition.Y + (float)this.Ran.Next(-49, 50));
             PowerItem_Touhou powerItemTouhou = new PowerItem_Touhou(this.StageData, OriginalPosition);
         }
         for (int index = 0; index < 15; ++index)
         {
             OriginalPosition = new PointF(this.OriginalPosition.X + (float)this.Ran.Next(-49, 50), this.OriginalPosition.Y + (float)this.Ran.Next(-49, 50));
             ScoreItem_Touhou scoreItemTouhou = new ScoreItem_Touhou(this.StageData, OriginalPosition);
         }
     }
     else
     {
         for (int index = 0; index < 30; ++index)
         {
             ScoreItem_Touhou scoreItemTouhou = new ScoreItem_Touhou(this.StageData, new PointF(this.OriginalPosition.X + (float)this.Ran.Next(-49, 50), this.OriginalPosition.Y + (float)this.Ran.Next(-49, 50)));
         }
     }
 }