We will start by creating a clipped, draggable background, and then add linked scroll bars as shown in the following screenshot:
We want the player to be able to scroll on both axes. That means we need a background both larger and taller than the screen size. For this game, we will need quite a large environment to force him or her to scroll regularly. Let's create one that is twice the screen's size.
Perform the following steps to create the environment: