Post new topic    
Metal King Slime
Send private message
Random dungeons? 
 PostThu Mar 01, 2012 1:08 am
Send private message Reply with quote
I've been thinking if it would be possible to create randomized dungeons. I've already written some random dungeons creators for an aborted RogueLike in FreeBasic, so I know the basics of creating the functions. I've been studying the plotscripting dictionary, and I'm not sure, but would I be correct in assuming I would have to make use of the "read map block (x,y,layer)" and "write map block (x,y,layer)" functions?
Being from the third world, I reserve the right to speak in the third person.

Using Editor version wip 20170527 gfx_sdl+fb music_sdl
Metal Slime
Send private message
 
 PostThu Mar 01, 2012 1:40 am
Send private message Reply with quote
Yes, read map block and write map block would definitely be a part of it. If you've already written dungeon creators in freebasic, then you already know more about randomizing dungeons than I do. But I want to direct you to James Paige's Baconthulhu game just for reference. That game had a pretty decent dungeon generator, and includes the scripts for them.

http://hamsterrepublic.com/dl/baconthulhu.zip
Metal King Slime
Send private message
 
 PostThu Mar 01, 2012 3:36 am
Send private message Reply with quote
Sweet, I'll download it and have a looksee. With luck, I'll be able to pound something out with minimal head-against-monitors-banging, heh heh...
Being from the third world, I reserve the right to speak in the third person.

Using Editor version wip 20170527 gfx_sdl+fb music_sdl
Metal King Slime
Send private message
 
 PostThu Mar 01, 2012 4:00 am
Send private message Reply with quote
Whoa, a FB user. Is that how you found the OHRRPGCE?
Liquid Metal King Slime
Send private message
 
 PostThu Mar 01, 2012 4:04 am
Send private message Reply with quote
Yea, random map making is pretty easy actually. I scripted the basics for Tim-Tim's Tower in a couple hours.
Metal King Slime
Send private message
 
 PostThu Mar 01, 2012 4:30 am
Send private message Reply with quote
TMC wrote:
Whoa, a FB user. Is that how you found the OHRRPGCE?


No, I've actually been using OHRRPGCE way back when I was still in high school (I'm a grad student now) before it was in FB.

Spoonweaver wrote:
Yea, random map making is pretty easy actually. I scripted the basics for Tim-Tim's Tower in a couple hours.


Righto, I'll have a looksee at that as well and see what I can do, thanks!
Being from the third world, I reserve the right to speak in the third person.

Using Editor version wip 20170527 gfx_sdl+fb music_sdl
Metal King Slime
Send private message
 
 PostThu Mar 01, 2012 5:57 am
Send private message Reply with quote
There's really nothing OHR-specific to say about random dungeon generation (except that there's no way to "reload default passability" by script, so you'll need to write to the wallmap as well as the tilemap, using writepassblock). Instead I'll refer you to, of course, RogueBasin.

Well, I will give you a couple more clues, since you probably won't have top-down maps like 95% of roguelikes. It may be easier to have the floorplan (just ground tiles) on a separate layer so that the walls don't get in the way of examining the map. Also, the script interpreter is pretty slow, so avoid doing things too inefficiently.
Display posts from previous: