ondras / rot.js

ROguelike Toolkit in JavaScript. Cool dungeon-related stuff, interactive manual, documentation, tests!
https://ondras.github.io/rot.js/hp/
BSD 3-Clause "New" or "Revised" License
2.32k stars 254 forks source link

Is it possible to generate a dungeon from some room templates #185

Closed jeason1997 closed 3 years ago

jeason1997 commented 3 years ago

Games like Isaac, Enter the Dungeon, they are all pre-designed rooms, and then connected to a dungeon through these preset rooms.

thanks :)

ondras commented 3 years ago

Hi @jeason1997,

there is no such algorithm available in rot.js. I would say that the connections are highly dependent on those individually pre-designed rooms, so it might not be feasible to do this in a generic way.

jeason1997 commented 3 years ago

thanks @ondras ,It seems that I need to manually connect these specially designed rooms