Exemplo n.º 1
0
 public BackgroundGroupSSS01(StageDataPackage StageData)
 {
     new BackgroundTouhouStage02_3D(StageData).TxtureObject = StageData.TextureObjectDictionary["BG01b"];
     for (int index = 0; index < 20; ++index)
     {
         new BackgroundTree(StageData, "Tree", new PointF(290f, (float)(4200 - index * 200 + 100)), false).Mirrored = true;
         BackgroundTree backgroundTree1 = new BackgroundTree(StageData, "Tree", new PointF(290f, (float)(4200 - index * 200)), false);
         new BackgroundTree(StageData, "Tree", new PointF(-400f, (float)(4200 - index * 200 + 162)), false).Mirrored = true;
         BackgroundTree backgroundTree2 = new BackgroundTree(StageData, "Tree", new PointF(-400f, (float)(4200 - index * 200 + 62)), false);
     }
     for (int index = 0; index < 10; ++index)
     {
         Background3DObject background3Dobject1 = new Background3DObject(StageData, "Cloud02", new PointF(0.0f, (float)(index * 500)), false);
         background3Dobject1.Scale             = 2f;
         background3Dobject1.Mirrored          = false;
         background3Dobject1.OriginalPositionZ = -10f;
         background3Dobject1.Angle3DX          = -3.141593f;
         background3Dobject1.TransparentValueF = 50f;
         background3Dobject1.Velocity          = 0.5f;
         Background3DObject background3Dobject2 = new Background3DObject(StageData, "Cloud02", new PointF(-1024f, (float)(index * 500)), false);
         background3Dobject2.Scale             = 2f;
         background3Dobject2.Mirrored          = false;
         background3Dobject2.OriginalPositionZ = -10f;
         background3Dobject2.Angle3DX          = -3.141593f;
         background3Dobject2.TransparentValueF = 50f;
         background3Dobject2.Velocity          = 0.5f;
         Background3DObject background3Dobject3 = new Background3DObject(StageData, "Cloud02", new PointF(-2048f, (float)(index * 500)), false);
         background3Dobject3.Scale             = 2f;
         background3Dobject3.Mirrored          = false;
         background3Dobject3.OriginalPositionZ = -10f;
         background3Dobject3.Angle3DX          = -3.141593f;
         background3Dobject3.TransparentValueF = 50f;
         background3Dobject3.Velocity          = 0.5f;
         Background3DObject background3Dobject4 = new Background3DObject(StageData, "Cloud01", new PointF(0.0f, (float)(index * 500 + 250)), false);
         background3Dobject4.Scale             = 2f;
         background3Dobject4.Mirrored          = true;
         background3Dobject4.OriginalPositionZ = -20f;
         background3Dobject4.Angle3DX          = -3.141593f;
         background3Dobject4.TransparentValueF = 50f;
         background3Dobject4.Velocity          = -0.5f;
         Background3DObject background3Dobject5 = new Background3DObject(StageData, "Cloud01", new PointF(1024f, (float)(index * 500 + 250)), false);
         background3Dobject5.Scale             = 2f;
         background3Dobject5.Mirrored          = true;
         background3Dobject5.OriginalPositionZ = -20f;
         background3Dobject5.Angle3DX          = -3.141593f;
         background3Dobject5.TransparentValueF = 50f;
         background3Dobject5.Velocity          = -0.5f;
         Background3DObject background3Dobject6 = new Background3DObject(StageData, "Cloud01", new PointF(2048f, (float)(index * 500 + 250)), false);
         background3Dobject6.Scale             = 2f;
         background3Dobject6.Mirrored          = true;
         background3Dobject6.OriginalPositionZ = -20f;
         background3Dobject6.Angle3DX          = -3.141593f;
         background3Dobject6.TransparentValueF = 50f;
         background3Dobject6.Velocity          = -0.5f;
     }
 }
Exemplo n.º 2
0
        public BackgroundGroup02(StageDataPackage StageData)
        {
            BackgroundTouhouStage02_3D backgroundTouhouStage023D = new BackgroundTouhouStage02_3D(StageData);

            for (int index = 0; index < 20; ++index)
            {
                BackgroundTree backgroundTree1 = new BackgroundTree(StageData, "Background_Sunflowers", new PointF((float)StageData.Ran.Next(25, 300), (float)(5400 - index * 50 + 25)), false);
                backgroundTree1.Mirrored = true;
                backgroundTree1.Scale    = 0.5f;
                BackgroundTree backgroundTree2 = new BackgroundTree(StageData, "Background_Sunflowers", new PointF((float)StageData.Ran.Next(-300, -25), (float)(5400 - index * 50 + 31)), false);
                backgroundTree2.Mirrored = true;
                backgroundTree2.Scale    = 0.5f;
                new BackgroundTree(StageData, "Background_Sunflowers", new PointF((float)StageData.Ran.Next(-300, -25), (float)(5400 - index * 50 + 6)), false).Scale = 0.5f;
                new BackgroundTree(StageData, "Background_Sunflowers", new PointF((float)StageData.Ran.Next(25, 300), (float)(5400 - index * 50)), false).Scale       = 0.5f;
            }
            for (int index = 0; index < 20; ++index)
            {
                new BackgroundTree(StageData, "ea1655f0", new PointF(300f, (float)(4200 - index * 200 + 100)), false).Mirrored = true;
                BackgroundTree backgroundTree1 = new BackgroundTree(StageData, "ea1655f0", new PointF(290f, (float)(4200 - index * 200)), false);
                new BackgroundTree(StageData, "ea1655f0", new PointF(-400f, (float)(4200 - index * 200 + 162)), false).Mirrored = true;
                BackgroundTree backgroundTree2 = new BackgroundTree(StageData, "ea1655f0", new PointF(-410f, (float)(4200 - index * 200 + 62)), false);
            }
        }
Exemplo n.º 3
0
        public BackgroundGroup03(StageDataPackage StageData)
        {
            BackgroundTouhouWater backgroundTouhouWater1 = new BackgroundTouhouWater(StageData, "world02");

            backgroundTouhouWater1.OriginalPosition = new PointF(0.0f, 0.0f);
            backgroundTouhouWater1.Height           = 20;
            backgroundTouhouWater1.V1 = -0.2f;
            BackgroundTouhouWater backgroundTouhouWater2 = new BackgroundTouhouWater(StageData, "world02");

            backgroundTouhouWater2.OriginalPosition = new PointF(0.0f, 1000f);
            backgroundTouhouWater2.Height           = 20;
            backgroundTouhouWater2.V1 = -0.2f;
            BackgroundTouhouWater backgroundTouhouWater3 = new BackgroundTouhouWater(StageData, "world02");

            backgroundTouhouWater3.OriginalPosition = new PointF(0.0f, 2000f);
            backgroundTouhouWater3.Height           = 20;
            backgroundTouhouWater3.V1 = -0.2f;
            BackgroundTouhouWater backgroundTouhouWater4 = new BackgroundTouhouWater(StageData, "world02");

            backgroundTouhouWater4.OriginalPosition = new PointF(0.0f, 3000f);
            backgroundTouhouWater4.Height           = 20;
            backgroundTouhouWater4.V1 = -0.2f;
            BackgroundTouhouWater backgroundTouhouWater5 = new BackgroundTouhouWater(StageData, "world02");

            backgroundTouhouWater5.OriginalPosition = new PointF(0.0f, 4000f);
            backgroundTouhouWater5.Height           = 20;
            backgroundTouhouWater5.V1 = -0.2f;
            BackgroundTouhouWater backgroundTouhouWater6 = new BackgroundTouhouWater(StageData, "world02");

            backgroundTouhouWater6.ColorValue        = Color.BlueViolet;
            backgroundTouhouWater6.OriginalPosition  = new PointF(0.0f, -500f);
            backgroundTouhouWater6.Height            = 25;
            backgroundTouhouWater6.TransparentValueF = 150f;
            backgroundTouhouWater6.V1   = 0.2f;
            backgroundTouhouWater6.Time = 100;
            BackgroundTouhouWater backgroundTouhouWater7 = new BackgroundTouhouWater(StageData, "world02");

            backgroundTouhouWater7.ColorValue        = Color.BlueViolet;
            backgroundTouhouWater7.OriginalPosition  = new PointF(0.0f, 500f);
            backgroundTouhouWater7.Height            = 25;
            backgroundTouhouWater7.TransparentValueF = 150f;
            backgroundTouhouWater7.V1   = 0.2f;
            backgroundTouhouWater7.Time = 100;
            BackgroundTouhouWater backgroundTouhouWater8 = new BackgroundTouhouWater(StageData, "world02");

            backgroundTouhouWater8.ColorValue        = Color.BlueViolet;
            backgroundTouhouWater8.OriginalPosition  = new PointF(0.0f, 1500f);
            backgroundTouhouWater8.Height            = 25;
            backgroundTouhouWater8.TransparentValueF = 150f;
            backgroundTouhouWater8.V1   = 0.2f;
            backgroundTouhouWater8.Time = 100;
            BackgroundTouhouWater backgroundTouhouWater9 = new BackgroundTouhouWater(StageData, "world02");

            backgroundTouhouWater9.ColorValue        = Color.BlueViolet;
            backgroundTouhouWater9.OriginalPosition  = new PointF(0.0f, 2500f);
            backgroundTouhouWater9.Height            = 25;
            backgroundTouhouWater9.TransparentValueF = 150f;
            backgroundTouhouWater9.V1   = 0.2f;
            backgroundTouhouWater9.Time = 100;
            BackgroundTouhouWater backgroundTouhouWater10 = new BackgroundTouhouWater(StageData, "world02");

            backgroundTouhouWater10.ColorValue        = Color.BlueViolet;
            backgroundTouhouWater10.OriginalPosition  = new PointF(0.0f, 3500f);
            backgroundTouhouWater10.Height            = 25;
            backgroundTouhouWater10.TransparentValueF = 150f;
            backgroundTouhouWater10.V1   = 0.2f;
            backgroundTouhouWater10.Time = 100;
            List <int> intList1 = new List <int>();
            List <int> intList2 = new List <int>();

            for (int index = 0; index < 20; ++index)
            {
                int num1 = StageData.Ran.Next(100, 350);
                intList1.Add(num1);
                int num2 = StageData.Ran.Next(100, 350);
                intList2.Add(num2);
            }
            for (int index1 = 3; index1 >= 1; --index1)
            {
                for (int index2 = 0; index2 < 20; ++index2)
                {
                    BackgroundTree backgroundTree1 = new BackgroundTree(StageData, "EquinoxFlower00", new PointF((float)intList1[index2], (float)(1000 * index1 - index2 * 50)), false);
                    BackgroundTree backgroundTree2 = new BackgroundTree(StageData, "EquinoxFlower01", new PointF((float)intList2[index2], (float)(1000 * index1 - index2 * 50)), false);
                }
            }
        }