O'Reilly logo

Starling Game Development Essentials by Juwal Bose

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Device-specific changes

The Application Descriptor XML file is of great importance when we go cross platform. We need to provide a unique ID, which is usually the package name of your game, which is com.csharks.flagdefense. We need to set the following:

<autoOrients>false</autoOrients>
<aspectRatio>landscape</aspectRatio>
<renderMode>direct</renderMode>
<fullScreen>true</fullScreen>
<visible>true</visible>

We need to point to all the needed icon files, which are different for Android, desktop, and iOS, a safer way being to populate them all. There are some scripts out there which can help us create all the icons needed. We will also need to add the ANE file details if we are using any.

A major change in the code is the replacement of RenderTextures ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required