@FireskiesStudios
I made this game using pico-8, a 2D engine which is powered by the Lua language. I posted the source code here: https://www.lexaloffle.com/bbs/?pid=59509#p
That being said, it's a little hard to follow, since I had to cut a lot of corners to make it fit in a pico-8 file. I had planned to do a write-up, but there has not been a whole lot of community interest, and I would rather work on new things. I'ld be happy to shoot you some advice if you have questions about implementing this in pico8 or another engine!