google-code-export / badquest

Automatically exported from code.google.com/p/badquest
0 stars 0 forks source link

Room generation #58

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Begin looking into techniques for generating interesting rooms and populating 
them with game entities. Rooms should be easily linkable via portal.

Original issue reported on code.google.com by mikeg3...@gmail.com on 10 Feb 2013 at 9:25

GoogleCodeExporter commented 9 years ago
Began working on a homemade room partitioning algorithm. Results aren't so bad! 
I think I can refine the second stage (green walls) a little more.

Original comment by mikeg3...@gmail.com on 5 May 2013 at 2:57

Attachments:

GoogleCodeExporter commented 9 years ago
Now those pesky double-walls should be gone, for the most part.

Original comment by mikeg3...@gmail.com on 5 May 2013 at 3:33

Attachments:

GoogleCodeExporter commented 9 years ago
Noting this here: the current algorithm produces fairly different results 
depending on the number of rows (R) in the room. Smaller values for R lend 
themselves to a larger quantity of smaller chambers, whereas larger values for 
R generally produce larger chambers. It may be possible to segment a room into 
multiple tiers and run the algorithm on each slice if smaller and plentiful 
sub-rooms are desired.

Hell, it could even be called recursively on any rectangular chamber, given 
certain parameters.

Original comment by mikeg3...@gmail.com on 5 May 2013 at 3:58

GoogleCodeExporter commented 9 years ago
We've got doorways! Next up is room population, starting with portals. Linking 
them will be a beast all of its own. I have a few ideas for adding water that 
could be extended to a cavern-like room generator.

Original comment by mikeg3...@gmail.com on 6 May 2013 at 6:36

Attachments: