the character follows the mouse pointer. if touching the ghost the hp goes down. if you are getting the apple it gets 1 of your hp back. if your hp goes to 0 then you lose.