Use the arrow keys to move and space to jump. Try to hit Eggman as many times as you can. There are no lightning balls.
The first one that pops out is always the same.