Skip to content

Endless Cavern

Strange well in Arkham country—water gives out (or was never struck —hole kept tightly covered by a stone ever since dug)—no bottom—shunned and feared—what lay beneath (either unholy temple or other very ancient thing, or great cave-world).

An entry for the TIGsource Commonplace Book competition.


Windows (1MB)
Mac OSX 10.5 (2MB)
Source (4MB)

The source is, on the whole, a bit gross, owing partly to my inability to wrap the fmod library properly. If there’s any interest at all, I can easily make an easy-to-compile soundless and generally tidied-up version of the game available.


space – to progress through title menus
left/right – to move left/right
up/down – to turn off/on ‘thrust’


Procedurally-generated tessellated-cavern flying game of sorts.



  1. lazor wrote:

    Man, this is some hard game!

    I found this via the tigsource forums and tried it out because I am currently looking at haskell and would like to make a small game with it myself.

    It is certainly interesting to look at code someone else has written.

    Btw.: I managed to compile this under Ubuntu Linux just fine. The only problem I had was the fmod library, it seems you are using fmod-3.75, of which there wasn’t a 64-Bit version available, so I just threw out everything sound related to get the thing to link the main executable.

    Thursday, February 12, 2009 at 2:54 pm | Permalink
  2. Icecube wrote:

    I don’t use fmod-3, I’m using fmod ex (I can’t remember what version off-hand; 4.something probably). I think that there are, in fact 64-bit versions available.

    Anyway, getting it to compile at all is a feat I guess…

    And yeah, it’s pretty hard.

    As for the code, the main messy part is the propagation of random variables down the tree when the cave is being generated. It’s not a big thing, but it does stink up the code a bit; I should probably have wrapped it in a monad of some sort. A lot of the code is pretty imperative in style, but whatever…

    Thursday, February 12, 2009 at 3:09 pm | Permalink
  3. I stink: I can’t get past the screenshot. :)

    Tuesday, April 26, 2011 at 7:39 am | Permalink
  4. Ericson Willians wrote:

    Fantastic game! (And really hard).

    Wednesday, March 19, 2014 at 5:19 am | Permalink
  5. bla wrote:

    very difficult this game

    Sunday, August 9, 2015 at 5:07 pm | Permalink