Ejemplo n.º 1
0
 private void SetAnimations()
 {
     for (int x = 0; x < MapWidth; x++)
     {
         for (int y = 0; y < MapHeight; y++)
         {
             Animations[x, y].Name = game.GetNameCell(new Position(x, y));
         }
     }
 }
Ejemplo n.º 2
0
 private void InitGame()
 {
     StepCount = 0;
     game      = new Game(levelInfo);
     for (int x = 0; x < MapWidth; x++)
     {
         for (int y = 0; y < MapHeight; y++)
         {
             Animations[x, y] = new CellAnimation
             {
                 Name     = game.GetNameCell(new Position(x, y)),
                 Location = new Point(x * ElementSize, y * ElementSize + ElementSize)
             };
         }
     }
 }