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  9

A One-Player Strategy Game

Part 2: Coding the Game

With the framework in place, you can now write the code to create a playable game. The trick here is always to make your code as efficient as possible. When games become more complex and involve more sprites, they can begin to slow as the processor struggles to keep up. You avoid this with some clever techniques that can ease the load.

Keeping the end goal in mind as you progress is also critical because you must have a functioning game before you can add the bells and whistles that differentiate your work from others. In fact, in my experience, knowing when to stop working on a game and release it is always the trickiest part. There is a fine line between a game that is too ...

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