Here is the source for the game, for whoever is interested:

https://trac.wildfiregames.com/browser/ps/trunk/source?order...