Use the arrow keys to move the ninja to avoid balls. If you get hit twice, you lose a heart. Try to stay alive as long as possible.
Fun fact, This was actually a project I made in 4th grade for school (~.~) :D but I edited later on.