Пример #1
0
 public UFO()
 {
     sprUFO.SetPos(0, 0);
     _imgColorArry = new Color[sprUFO.GetImange().Width, sprUFO.GetImange().Height];
     for (int i = 0; i < sprUFO.GetImange().Width; ++i)
     {
         for (int j = 0; j < sprUFO.GetImange().Height; ++j)
         {
             _imgColorArry[i, j] = sprUFO.GetPixel(i, j);
         }
     }
 }
Пример #2
0
 void Scene.Init()
 {
     _snowmgr.Init();
     _moon.SetPos(0f, 0f);
     startTime       = DateTime.Now.Ticks;
     GroundColorArry = _ground.ImgColorArry;
 }
Пример #3
0
 public Ground()
 {
     sprGround = new Sprtie(filePath);
     sprGround.SetPos(0f, 410f);
     ImgColorArry = new Color[sprGround.GetImange().Width, sprGround.GetImange().Height];
     for (int i = 0; i < sprGround.GetImange().Width; ++i)
     {
         for (int j = 0; j < sprGround.GetImange().Height; ++j)
         {
             ImgColorArry[i, j] = sprGround.GetPixel(i, j);
         }
     }
 }