3 ms·
I've built a Swift library to generate 2D dungeon maps, based on Perl and Javascript code from Donjon [0]. The code is kinda ugly but it works and I think it is
by wsc981 5y ago
I've built a Swift library to generate 2D dungeon maps, based on Perl and Javascript code from Donjon [0]. The code is kinda ugly but it works and I think it is one of the nicer dungeon generators: https://github.com/wolf81/DungeonBuilder https://github.com/wolf81/DungeonBuilder
The repo contains the original Perl and JavaScript code for reference.
I also wrote a small library to deal with time in an AD&D setting. This library is also in Swift and the code is quite clean I think:
https://github.com/wolf81/Harptos https://github.com/wolf81/Harptos
I built both libraries to use for a game, but I never finished it: https://www.youtube.com/watch?v=TsqMGCWeD6I https://www.youtube.com/watch?v=TsqMGCWeD6I
At some point I hope to do a re-write in LÖVE 2D.
---
[0]: https://donjon.bin.sh https://donjon.bin.sh