This is a model of a side scroller. Arrow to the right to move. Spacebar to jump
The background is actually 2 additional sprites. Each of the background sprites move to the left when the user arrows to the right. 2 variable counters are used to note when to have the background sprite reset to the left.