Use the up and down arrow keys to move, without hitting the obstacles.If you touch a obstacle, you're health goes down by one. If your health goes all the way down, you lose.
I'd like to thank griffpatch for the scrolling background tutorial on YouTube. BTW, I couldn't figure out a health bar so it goes on forever.