This is what the game I posted a couple of days ago, Endless Cavern, was essentially based around.
The haskell code is simple (not awfully efficient, but that’s not a concern just yet), and I’ve tossed it here (32kb). You can control the prototype by pressing left/right on the keyboard.