The game's source is available, though I don't know under what license (the source download is twice the size of the game itself).