6.1. Programming Tile-Based Scrolling Backgrounds
Learning Objectives
When you have finished this section, you should be able to:
- Explain what scrolling is.
- Work with tile-based backgrounds.
- Enhance the tank war game with the new scrolling technology.
Required Tasks
- Read Chapter 12, Programming Tile-Based Scrolling Backgrounds, in the eTextbook.
- Carefully study the ScrollScreen and TileScroll programs on pages 437-438, and pages 442-445 respectively. You are encouraged to type the code into your IDE rather than loading from the Files link below.
- Work through the enhanced Tank War game program line by line to find out how the new scrolling technology is used to enhance the game.
- Load the enhanced game project from the scrolling backgrounds link under the Files link into your IDE, and build it.
- Complete the Chapter 12 quiz, and check your answers in Appendix A.
Files (GameWorld, ScrollScreen, tankwar_r5, TileScroll)
Optional Task
- Write your own screen-scrolling and tile-scrolling programs, to gain first-hand experience in game programming.