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 ...

Get Beginning Android Tablet Games Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.