The dog moves left and right with the arrow keys. The background sprites scroll around and around. Ecah background has a variable called "position" to determine its location.