Exemplo n.º 1
0
        private void InitializeGameArea()
        {
            gameArea = new MainGameArea[sectorsAcross, sectorsDown];

            for (int i = 0; i <= sectorsAcross - 1; i++)
            {
                for (int j = 0; j <= sectorsDown - 1; j++)
                {
                    gameArea[i, j] = new MainGameArea(gameArt.TileTexture.Width, gameArt.TileTexture.Height);
                }
            }
            gameArea[0, 0].Active = true;
        }
Exemplo n.º 2
0
        private void InitializeGameArea()
        {
            gameArea = new MainGameArea[sectorsAcross, sectorsDown];

            for (int i = 0; i <= sectorsAcross - 1; i++)
            {
                for (int j = 0; j <= sectorsDown - 1; j++)
                {
                    gameArea[i, j] = new MainGameArea(gameArt.TileTexture.Width, gameArt.TileTexture.Height);
                }
            }
            gameArea[0, 0].Active = true;
        }