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

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.