Join us on Discord!
You can help CodeWalrus stay online by donating here.

Random dungeon generation

Started by Keoni29, August 13, 2015, 11:56:59 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

123outerme

Oh wow! A random dungeon generation would be possible, my only concern is that the list variable would get pretty large. I'll look at this more later.
  • Calculators owned: TI-84+CSE, TI-nspire Clickpad, TI-84+SE

Dream of Omnimaga

What if the only randomly generated thing was the connection between rectangular rooms like the ones in FF and Solius?
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

CKH4

#17
Well @123outerme the list could be a linked list or alternate x,y list or the room direction list (by far the smallest, up to half the size) so at least theres options. The other problem would be door position. It could be random each time or you could set it so that a saved room would generate the same doors if the room matches your own random function calculated by some aspect of the room. You could also have everything open and generate enemies to act as doors but this would either be random or your own random function. Hopefully you'll get the gist of what I'm saying. Also you should be able to see the code soon (I typed it wrong from my phone the other day).


Edit. Just to let you know the code is blatantly simple, it just draws and erases the walls that have another room next to them. (its probable like < 400b)
  • Calculators owned: TI-83+, TI-84+


Dream of Omnimaga

Oh right, you have it so that two rooms that aren't connected cannot be next to each others. In FF:MF doing this was possible due to the way map data was stored, but it made it hard to draw maps and editing maps was much harder. It allowed maps to be more compact, though.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

CKH4

Yeah but my preference for a game like this is that it's generated once at the beginning of each game and so editing wouldn't matter.
  • Calculators owned: TI-83+, TI-84+


Dream of Omnimaga

Yeah true. It's just the map data that would be harder to work with (eg in FF:MF there are many and/or commands in If instructions)
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Powered by EzPortal