Arrow keys to move. Avoid red. Magenta acts as an activator. Green is the end. There are 5 levels. If the first level does not have exactly 3 red balls alternating directions, click the flag again.
I made this in Snap for a project in 12th grade CompSci. I converted it to Scratch to share here but it's buggy. Lava balls don't appear on lvls 4 & 5 :( Snap version: https://snap.berkeley.edu/project?username=blockly806&projectname=obby