its like a platformer. Copy the code inside for a (ok) platformer. its just the basics.
I made all of the project. griffpatch probably has a better tutorial