Esempio n. 1
0
    /*
     *
     *  if(DungeonFloor <= 4)
     *      Spawning.SpawnEnemies(map, numEnemies, eRat, PlayerInstance);
     *  if(DungeonFloor == 4)
     *      Spawning.SpawnEnemies(map, 1, eGhost, PlayerInstance);
     *  if(DungeonFloor > 4)
     *      Spawning.SpawnEnemies(map, numEnemies, eGhost, PlayerInstance);
     *              if(DungeonFloor == 9)
     *                      Spawning.SpawnEnemies(map, 1, eDragon, PlayerInstance);
     *              if(DungeonFloor > 9)
     *                      Spawning.SpawnEnemies(map, numEnemies, eDragon, PlayerInstance);
     *
     */

    TileMapData genTMD()
    {
        TileMapData map = new TileMapData();

        if (DungeonFloor % 5 == 0 && DungeonFloor != 0)
        {
            map.GenArena();
            map.set = TileSet.Classic;
        }
        else if (Random.Range(0.0f, 2.0f) > 1.0)
        {
            map.GenCave(xMax, yMax, 40);
            map.set = TileSet.Cave;
        }
        else
        {
            map.GenClassic(xMax, yMax, nRooms);
            map.set = TileSet.Classic;
        }
        return(map);
    }