Creating an environment
Our adventure game will feature three separate but connected scenes that the player can explore, moving from one scene to the next. The player may travel between scenes by traversing the edge of a scene. Each scene consists primarily of platforms and ledges and, in some cases, obstacles that must be overcome. In terms of graphical assets, each scene is made up from two textures or sprites: the background and foreground. The preceding screenshot shows the background of the first scene, while the following screenshot shows the foreground, which includes a complete layout of all the platforms and ledges that the player must traverse:
Important Note
These files are included in this book's companion files, in the Chapter05/Assets
folder.
Let's create the first level:
- Drag and drop both the background (
tex_level01_bck
) and foreground (tex_level01_design
) sprites from the Project...