Look in the source code.
@PUBYU asked for help with his project - I've recoded the basic engine to be relatively robust, but I've left all the gameplay still to be added.