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)); } } }
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) }; } } }