Game Development Reference
In-Depth Information
tablethd : Used by iPad third and iPad mini second generation and newer
iPads
If your minimum deployment target is iOS 7 or newer, definitely uncheck phone . There
is no non-Retina iPhone device supported by Cocos2D other than the iPhone 3GS, and the
3GS' highest supported operating system is iOS 6. If your app is for iPads only, uncheck
both the phone and phonehd check boxes. Likewise, if your app is for iPhone only, you
should uncheck the tablet and tablethd check boxes. Unchecking unneeded publish
targets can significantly reduce your app's download size.
Note SpriteBuilder apps will not run on the original iPhone and the iPhone 3G
as well as corresponding iPod touch models (first and second generation, and
third generation with 8-GB flash memory).
As for the other options, leave them as is for the topic's project, I'll quickly go over the
more elusive options:
Audio quality : This affects the size and quality of published audio files. The
effect on app size varies depending on the audio files. Quality level 1 creates
the smallest files but also low quality audio.
The Screen mode setting if changed to Fixed disables SpriteBuilder's scal-
ing to adapt CCBs to the device resolution. It's main use case is when your
game is iPhone-only and you want to treat the 3.5-inch and 4-inch iPhones
as essentially the same devices, with the widescreen iPhones being slightly
(88 points) wider. In that case, it may be a little easier to use fixed mode, but
it's generally not recommended because it makes screen layouts more diffi-
cult.
Last, the Orientation setting should be self-explanatory. Change it when
your game is supposed to run in portrait mode. The topic's project uses land-
scape orientation.
Adding Additional Background Layers
Back to parallaxing layers. You obviously need more than one layer to get the desired
depth effect. Moreover, it's not a good idea to compose each parallax layer out of a single
image like the Cerberus sprite. The closer a layer appears to the viewer, the larger its size
Search WWH ::




Custom Search