dungeon navigation plus map - jackdarker/TwineTest GitHub Wiki
You can create a dungeon of connected rooms easily by creating a passage for each room and linking them appropiatly.
But maybe you want also a kind of mapping tool to show the dungeon-layout to the player. You would have to build that map manually.
Therefore I decided to add a dungeon-engine where you construct rooms and connection via scripting. Then the map can be created automatically.
See dungeon.js (engine) and dungeons.js (= example).
Pros
- you dont need to write a passage for each scene
- could be used to build randomized dungeons via scripting
- mapping with position of player and stairs included
- triggering of events onEnter/onExit possible
- oneway connections and canExit-check possible
- smaller memory-consumption since the dungeon is only created if its entered ?
Contra
- due to script overhead, saving in dungeon has to be disabled
- you dont have much possibilitys to modify the appearence of the room (static description)
- there are only this possible connection-directions: S,N,W,E,stairup,stairdown
- its tedious to debug on enter/onexit events