Very simple prototype I made for character movement in an environment that keeps moving. 
This was written in about a day (Summer 2003 I think), so should be read with a large 
pinch of salt at hand. After porting it (with some modifications) into a full 3D 3rd-person
game it worked pretty well.

It uses Verlet integration to cope with the environment moving (and sometimes squashing 
the player). The player has absolute control in the horizontal directions, but is subject
to gravity in the vertical.

Keys are z, x and space. q quits

Use the code as you wish. It is very rough. 

- Danny Chapman.