He also built a 3d engine from scratch using only 2d line function, way before ai:
https://github.com/mrconter1/IntuitiveEngine