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

Working with Images

Sprites are fundamental to games, and before you can create a game, you need to be able to draw its cards, characters, and other objects on the screen. In this section you will work with the fundamental components of graphic displays for Android 3.0. We will also work out the components of sprites and move our images across the screen. This will become the basis for our future projects. Take a look at Figure 2-1 to see what our game will look like. This start sprite is actually bouncing back and forth.

images

Figure 2-1. The completed Graphics Program.

Note If you get lost, copy the code from the Google Code project connected ...

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