You can move Scratch using the 4 arrow keys. The goal is to dodge the cannonballs as long as possible! If you get hit by a cannonball, the game is over.
I used gwalker's pikachu game code to learn how to pool cannonballs (hide when they go out of bounds then show when they come back to their original position.)