-
Book Overview & Buying
-
Table Of Contents
Marmalade SDK Mobile Game Development Essentials
By :
Here are some details about the example projects that accompany this chapter.
This is a complete
example of the first spinning cube project discussed in this chapter, where we generate the model data in code and submit it to IwGx for rendering using IwGxDrawPrims. See the following screenshot:

This project is almost identical to the previous project, except that the model data for the cube has been exported as a GEO file from a 3D modeling package.
For this chapter the Skiing game waves goodbye to its old bitmapped graphics and instead says hello to some new 3D models instead. A screenshot of the game with its new 3D skin can be seen in the following figure:

The following sections describe some of the other more interesting changes to the game code for this chapter.
The first step was to change all position and velocity information from being 2D vectors to 3D vectors, which meant changing CIwVec2 instances to CIwFVec3...
Change the font size
Change margin width
Change background colour