O'Reilly logo

Sams Teach Yourself Android Game Programming in 24 Hours by Jonathan S. Harbour

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Hour 23. Scrolling the Background

What You’ll Learn in This Hour

• Understanding the theory of background scrolling

• Creating a shoot-’em-up game

In the previous hour we covered linear velocity, a technique used to simulate firing projectiles (bullets, laser beams missiles, and the like). It is also used to move things in a certain direction. The example started in that hour showed a spaceship (controlled by the player), which could fire laser beams at obstacles on the screen—the start of a shoot-’em-up game. This hour covers background scrolling and ties the two together into a cohesive whole game example—a demo that could be the start of a larger, more fully developed game with enemy ships and the like.

Background Scrolling Overview

Background ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required