(no title)
amjoshuamichael | 11 months ago
Quick fact about the way the interactivity is done, all of the code for it is in this blogpost.js file: https://aaaa.sh/creatures/blogpost.js, which is only about 100 lines long. Each block has a list of scripts that it pulls from like so:
<div class="code-example" scripts="grid-sm 2d-vector-gfx-lib draw-grid full-algo-intro feather-canvas-edges"></div>
and then there's a set of script tags with those ids. I figured it was a nice solution!
dndn1|11 months ago
This algorithm is one I use to demo some features in a language I'm making called calculang [0][1] I like the way you step through the logic.
My only suggestion would be to include a raycasted scene because you can really grab a wide(r) audience (and I'd love to see how you get to voxel scenes!).
Either way - thanks for adding a neat new resource for this algorithm and I'm definitely taking notes Re your clean presentation of the details!
[0] https://next-calculang-gallery.netlify.app/raycasting
[1] https://www.youtube.com/watch?v=hKVXRACCnqU
amjoshuamichael|11 months ago
jasonjmcghee|11 months ago
davidanekstein|11 months ago
MrMcCall|11 months ago