O'Reilly logo

Beginning Android Tablet Games Programming by Jeremy Kerfs

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

C H A P T E R  5

One-Player Game with Obstacles

After learning about graphics, sound, and input for tablet games, you have all the building blocks necessary for a simple game. In this chapter, you put them together, build a simple game, and ready yourself for some truly awesome creations. But to build even the simplest game, you need to be able to keep track of sprites, make them obey some basic laws of physics, and combine them in a way that engages the user in play.

In this chapter, you build a one-character game with some obstacles. The result is a simple game that is engaging for a player. All of this is accomplished through the use of sprites. Interactions between user and sprites along with sprite-to-sprite interactions make up the core ...

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