about summary refs log tree commit diff
path: root/users/glittershark/xanthous/src/Xanthous/Generators/Village.hs
AgeCommit message (Collapse)AuthorFilesLines
2020-07-04 r/1207 refactor(xan): Switch to V2 over tuples most placesGriffin Smith1-2/+2
These are generally rather nicer to work due to some typeclass instances, and integrate better with other ecosystems for things like linear algebra etc. Change-Id: I546c8da7b17234648f3d612b28741c1fded25447 Reviewed-on: https://cl.tvl.fyi/c/depot/+/910 Tested-by: BuildkiteCI Reviewed-by: glittershark <grfn@gws.fyi>
2020-06-29 r/1115 chore(xan): explicit export list, remove unused pragmaGriffin Smith1-4/+2
Change-Id: I7089850f23b2b9612b6585a2760536fd1178cbc6 Reviewed-on: https://cl.tvl.fyi/c/depot/+/730 Reviewed-by: glittershark <grfn@gws.fyi>
2020-06-28 r/1111 feat(xan): Generate random villagesGriffin Smith1-0/+127
This algorithm is a little rough around the edges right now, but generally the idea is we find a relatively closed-off region of the map, and place rooms randomly on it, expanding them until they run into each other, then we put doors in the walls of the rooms and a single door opening into the region. Later on, we'll generate friendly (or unfriendly!) NPCs to put in those rooms. Change-Id: Ic989b9905f55ad92a01fdf6db11aa57afb4ce383 Reviewed-on: https://cl.tvl.fyi/c/depot/+/726 Reviewed-by: glittershark <grfn@gws.fyi>