Example #1
0
 public override void GenerateStage()
 {
     for (int x = 0; x < 10; x++)
     {
         for (int y = 0; y < 7; y++)
         {
             float positionX  = x * 50.0f - 225.0f;
             float positionY  = y * 60.0f + 0.0f;
             int   colorCode  = 6 - y;
             int   breakCount = y + 1;
             if (y == 6 && (x == 3 || x == 6))
             {
                 prefabCreator.CreateCountLevelUpBlock(positionX, positionY, 12);
             }
             else
             {
                 prefabCreator.CreateCountBlock(positionX, positionY, colorCode, breakCount);
             }
         }
     }
     for (int i = 0; i < 6; i++)
     {
         float[] positionXs = { -300.0f, 300.0f, -350.0f, 350.0f, -400.0f, 400.0f };
         float[] positionYs = { 0.0f, 0.0f, 120.0f, 120.0f, 240.0f, 240.0f };
         float   positionX  = positionXs[i];
         float   positionY  = positionYs[i];
         prefabCreator.CreateItemBlock(positionX, positionY, 11);
     }
     for (int i = 0; i < 12; i++)
     {
         float[] positionXs = { -300.0f, 300.0f, -300.0f, 300.0f, -350.0f, 350.0f, -300.0f, 300.0f, -400.0f, 400.0f, -350.0f, 350.0f };
         float[] positionYs = { 50.0f, 50.0f, 170.0f, 170.0f, 230.0f, 230.0f, 290.0f, 290.0f, 290.0f, 290.0f, 350.0f, 350.0f };
         float   positionX  = positionXs[i];
         float   positionY  = positionYs[i];
         prefabCreator.CreateAccelerateBlock(positionX, positionY);
     }
     for (int i = 0; i < 12; i++)
     {
         float[] positionXs = { -300.0f, 300.0f, -350.0f, 350.0f, -300.0f, 300.0f, -350.0f, 350.0f, -300.0f, 300.0f, -400.0f, 400.0f };
         float[] positionYs = { 110.0f, 110.0f, 170.0f, 170.0f, 230.0f, 230.0f, 290.0f, 290.0f, 350.0f, 350.0f, 350.0f, 350.0f };
         float   positionX  = positionXs[i];
         float   positionY  = positionYs[i];
         prefabCreator.CreateFlashBlock(positionX, positionY);
     }
     prefabCreator.CreateCountLevelUpBlock(-450.0f, 360.0f, 8);
     prefabCreator.CreateCountLevelUpBlock(450.0f, 360.0f, 8);
     sixGatesSystem = prefabCreator.CreateSixGatesSystem();
     prefabCreator.CreateCeilingSystem();
 }
Example #2
0
 public override void GenerateStage()
 {
     for (int y = 0; y < 7; y++)
     {
         for (int x = 0; x < 4 + y * 2; x++)
         {
             float positionX = (x - y) * 50.0f - 75.0f;
             float positionY = y * 60.0f + 0.0f;
             int   colorCode = y;
             prefabCreator.CreateNormalBlock(positionX, positionY, colorCode);
         }
     }
     sixGatesSystem = prefabCreator.CreateSixGatesSystem();
     prefabCreator.CreateCeilingSystem();
 }