about summary refs log tree commit diff
path: root/users/glittershark/xanthous (follow)
AgeCommit message (Collapse)AuthorFilesLines
2020-06-28 r/1111 feat(xan): Generate random villagesGriffin Smith12-20/+300
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>
2020-06-28 r/1110 feat(xan): Use Witherable in the preludeGriffin Smith7-6/+30
Install the witherable library, expose it in the prelude, and update all call sites that are broken by that change. This is a really nice library, and basically the ideal abstraction layer for what it does. Change-Id: I640e099318c1ecce0ad483bc336c379698bdab88 Reviewed-on: https://cl.tvl.fyi/c/depot/+/725 Reviewed-by: glittershark <grfn@gws.fyi>
2020-06-28 r/1109 feat(xan): Add a Marker entity typeGriffin Smith2-0/+45
It's useful, when developing new level gen techniques, to be able to specially mark certain areas of the map during devlopment. This adds a Marker entity type, which renders as a red X on the map and provides a programmable description when examined. In the future it'll probably be nice to toggle markers on/off just like we do with revealAll, but for now it'll be fine to just remove the code to render them like we do with debug traces. Change-Id: Ief5d090809a0a4cbcc28f90e4902a5e38d42eeb5 Reviewed-on: https://cl.tvl.fyi/c/depot/+/724 Reviewed-by: glittershark <grfn@gws.fyi>
2020-06-22 r/1059 fix(xanthous): Make floodFill fasterGriffin Smith1-1/+4
Speed up the floodFill algorithm by sprinkling in some strictness and specializing it to the only type it's currently called at anyway. Change-Id: I4557fc51b1c1036c127bfd5bee50748d8692ae74 Reviewed-on: https://cl.tvl.fyi/c/depot/+/555 Reviewed-by: glittershark <grfn@gws.fyi>
2020-06-22 r/1058 feat(xanthous): install hp2prettyGriffin Smith1-0/+1
heap profiling woo Change-Id: Ie14bc81e9278e3c0d65bd22efc24cfaae43369ca Reviewed-on: https://cl.tvl.fyi/c/depot/+/554 Reviewed-by: glittershark <grfn@gws.fyi>
2020-06-22 r/1057 chore(xan): Install ghc-prof-flamegraphGriffin Smith2-3/+21
Some things are slow, and it's time to profile them Change-Id: I6a915db8bcc85adc7c3902a407cebb5a6f52d514 Reviewed-on: https://cl.tvl.fyi/c/depot/+/553 Reviewed-by: glittershark <grfn@gws.fyi>
2020-06-16 r/980 fix(g/xanthous): Make xanthous readTree-compatibleGriffin Smith1-0/+2
readTree passes in some extra args that we can generally just ignore Change-Id: I2607421da086cfef0502695bcf5658f6d4dbb44d Reviewed-on: https://cl.tvl.fyi/c/depot/+/394 Reviewed-by: glittershark <grfn@gws.fyi>
2020-06-16 r/978 Add 'users/glittershark/xanthous/' from commit ↵Vincent Ambo96-0/+10030
'53b56744f4335c038724a1bcffc27a7eb8cf6a6d' git-subtree-dir: users/glittershark/xanthous git-subtree-mainline: 91f53f02d8479303910abfd3f3690d3ef27e6c4b git-subtree-split: 53b56744f4335c038724a1bcffc27a7eb8cf6a6d