Subject: Re: Level built by humans Date: Tue, 5 Mar 2002 09:48:12 +0000 (UTC) From: Sheep@venus.wmid.amu.edu.pl (The Sheep) Organization: POZMAN - http://www.man.poznan.pl/ Newsgroups: rec.games.roguelike.development Dnia Mon, 4 Mar 2002 16:37:51 +0000 (UTC), The Sheep napisal(a): >Anyways, you also use something similar to the buildings and >dungeons in Alphaman. >I think it goes like this: > >1) take a large, empty room >2) select axis (horizontal or vertical) >3) select position >4) divide the room with a wall with some door in it >5) repeat from 2 for each of the new rooms (if the rooms are >large enough) Now, I've red it again and I think I have a good idea. Don't just add single walls. Add corridors (two parallel walls, close to each other, with at least one door). Somethnig like this: 1) Start with a big room: XXXXXXXXXXXXXXXXXXXXXXXXXXXX X..........................X X..........................X X..........................X X..........................X X..........................X X..........................X X..........................X X..........................X X..........................X X..........................X X..........................X X..........................X X..........................X X..........................X X..........................X XXXXXXXXXXXXXXXXXXXXXXXXXXXX 2) Add a corridor: XXXXXXXXXXXXXXXXXXXXXXXXXXXX X..........................X X..........................X X..........................X X..........................X X..........................X X..........................X X..........................X X####+#####################X X..........................X X#####################+####X X..........................X X..........................X X..........................X X..........................X X..........................X XXXXXXXXXXXXXXXXXXXXXXXXXXXX 3) Repeat it with each of the new rooms: XXXXXXXXXXXXXXXXXXXXXXXXXXXX X..........................X X..........................X X##################+#######X X..........................X X############+#############X X..........................X X..........................X X####+#####################X X..........................X X###########+#########+####X X..........#.#.............X X..........#.#.............X X..........#.#.............X X..........#.#.............X X..........#.#.............X XXXXXXXXXXXXXXXXXXXXXXXXXXXX 4) And again, and again... XXXXXXXXXXXXXXXXXXXXXXXXXXXX X...........#.+............X X...........+.#............X X############.#####+#######X X..........................X X#######.####+##########.##X X......#.+.............#.#.X X......+.#.............+.+.X X####+##.###############.##X X..........................X X###########.######.##+####X X..........#.#....+.#......X X..........+.#....#.#......X X..........#.#....#.+......X X..........#.+....#.#......X X..........#.#....#.#......X XXXXXXXXXXXXXXXXXXXXXXXXXXXX All you need is a way to determine how to add the corridors (vertically | horizontally) and where to put doors. You can keep a flag for every room indicating that this room is already connected (has door). -- The Sheep