First a random level will generate. Then you, the cat, will explore it. The cat faces your mouse pointer. Press space to make the cat move forward. Click to create a portal. The cat will jump between the portals if you're touching them. Don't touch red.
I made this when I was a teenager. Recently I went through all my old Scratch stuff and published it for posterity.