-
Book Overview & Buying
-
Table Of Contents
Marmalade SDK Mobile Game Development Essentials
By :
There are two example projects that accompany this chapter, and they are described in the following sections.
This is a very simple example demonstrating the use of build styles, resource templates, and deployment types. It is based on the Graphics2D example from Chapter 2, Resource Management and 2D Graphics Rendering.
The resbuildstyles.itx file defines a build style called highres that specifies a prefix directory called data-highres. If you look inside the data directory, you will see that the jar of the marmalade image in data\images\textures\marmalade.png is 256 x 256 pixels in size. A new directory for the highres build style has also been added, containing a 512 x 512 version of this image. This file is called data\data-highres\images\textures\marmalade.png.
If you now look at the app.icf file, you will see the new entry ResBuildStyle=highres. If you run the program with this line in place, the 512 x 512 version of the image will be loaded. Comment...
Change the font size
Change margin width
Change background colour