Ejemplo n.º 1
0
        // Create a grid with only floortiles.
        public Entity[,] GenerateNewGrid(int sizeRows, int sizeCols)
        {
            Entity[,] newGrid = new Entity[sizeCols, sizeRows];

            for (int i = 0; i < newGrid.GetLength(0); i++)
            {
                for (int j = 0; j < newGrid.GetLength(1); j++)
                {
                    newGrid[i, j] = new FloorTile();
                }
            }

            return(newGrid);
        }