Game Development Reference
In-Depth Information
Figure 13-3. The Google Play Developer Console
Updating the Fakezee Game For Packaging
A few things need to be done to the current Fakezee game to prepare it for packaging as an application. First, it will be
reformatted visually to better suit portrait orientations on devices. The same assets are used, but various positioning
values are updated to lay out the sprites and containers into new positions. We won't be covering the code for this
layout, but you can review it in the source code provided for this chapter. The second adjustment needed for the game
to properly be compiled with PhoneGap is the refactoring of asset-loading code. Because PhoneGap uses JSONP to
load in data, some code updates will be needed for preloading assets. This code will be covered later in this section.
Adjusting the Visual Layout for Fakezee
The scaling code built in the Chapter 12 will still be used in this application. Because of the various screen sizes on
devices between iOS and Android, you'll still want the game to utilize this logic so it will adjust accordingly. The game
will be packaged and configured to stay locked on portrait mode, so some slight adjustments will be made to fill up
the screen (see Figure 13-4 ).
 
Search WWH ::




Custom Search