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); } } }
void Scene.Init() { _snowmgr.Init(); _moon.SetPos(0f, 0f); startTime = DateTime.Now.Ticks; GroundColorArry = _ground.ImgColorArry; }
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); } } }