Move your Scratch Cat to touch the green ball 5 times to unlock the portal and escape. Use the arrow keys on your keyboard to move the cat. Don't get touched by the red ball, or you will slowly turn invisible. If you fully turn invisible, the game ends.
This was a fun little homework assignment.