Esempio n. 1
0
 protected override void CreateWorld()
 {
     groundTileArray = new Ground[17,27];
     platformTileArray = new Platform[17, 27];
     spikesTileArray = new Spikes[17, 27];
     for (int i = 0; i < 17; i++)
     {
         for (int j = 0; j < 27; j++)
         {
             if (intTileArray[i, j] == 1)
                 groundTileArray[i, j] = new Ground(video, new System.Drawing.Point(j*30, i*30));
             if (intTileArray[i, j] == 2)
                 platformTileArray[i, j] = new Platform(video, new System.Drawing.Point(j * 30, i * 30));
             if (intTileArray[i, j] == 3)
                 spikesTileArray[i, j] = new Spikes(video, new System.Drawing.Point(j * 30, i * 30));
         }
     }
 }
Esempio n. 2
0
 protected override void CreateWorld()
 {
     groundTileArray   = new Ground[17, 27];
     platformTileArray = new Platform[17, 27];
     spikesTileArray   = new Spikes[17, 27];
     for (int i = 0; i < 17; i++)
     {
         for (int j = 0; j < 27; j++)
         {
             if (intTileArray[i, j] == 1)
             {
                 groundTileArray[i, j] = new Ground(video, new System.Drawing.Point(j * 30, i * 30));
             }
             if (intTileArray[i, j] == 2)
             {
                 platformTileArray[i, j] = new Platform(video, new System.Drawing.Point(j * 30, i * 30));
             }
             if (intTileArray[i, j] == 3)
             {
                 spikesTileArray[i, j] = new Spikes(video, new System.Drawing.Point(j * 30, i * 30));
             }
         }
     }
 }