public void UpDateTiles(LevelMap map)
 {
     for (int row = 0; row < mapDemensions.X; row++)
         for (int col = 0; col < mapDemensions.Y; col++)
         {
             if (map.GetTileState(row, col))
             {
                 gameTiles[row, col] = -1;
             }
             else
                 gameTiles[row, col] = 0;
         }
 }
        public void SetMapTiles(LevelMap map)
        {
            mapDemensions = map.MAPSIZE;
            gameTiles = new int[(int)mapDemensions.X, (int)mapDemensions.Y];

            for (int row = 0; row < mapDemensions.X; row++)
                for (int col = 0; col < mapDemensions.Y; col++)
                {
                    if (map.GetTileState(row, col))
                    {
                        gameTiles[row, col] = -1;
                    }
                    else
                        gameTiles[row, col] = 0;
                }
        }