Scrolling the background
To run RHB left to right with an infinite background, we have two choices, as follows:
- Procedurally generate a background, based on a pattern or mathematical formula.
- Use the Hanna-Barbera technique.
While the first option may appear more interesting or dynamic, the Hanna-Barbera technique is much simpler, and it's what we'll be using for Walk the Dog. What is the Hanna-Barbera technique? Well, for starters, it may not even go by that name, but that's what I'm calling it. Hanna-Barbera was an animation studio that ran a series of very popular cartoons from the '50s through to the '90s, including Tom and Jerry, The Flintstones, Scooby-Doo, Yogi Bear, and many more. If you were a child in any of those decades, you would wake up to "Saturday morning cartoons," which were dominated by Hanna-Barbera properties. While the studio was known for their beloved characters, they were also known for cutting costs...