Game Development Reference
In-Depth Information
Figure 6-1. All the graphic assets of Mr. Nom with their respective filenames and sizes in pixels
Let's break down those images a little:
background.png : This is our background image, which will be the first thing we'll
draw to the framebuffer. It has the same size as our target resolution for obvious
reasons.
buttons.png : This contains all the buttons we'll need in our game. We put them
into a single file, as we can easily draw them via the Graphics.drawPixmap()
method, which allows drawing portions of an image. We'll use that technique
more often when we start drawing with OpenGL ES, so we better get used to
it now. Merging several images into a single image is often called atlasing , and
Search WWH ::




Custom Search