Game Development Reference
In-Depth Information
<inherits name='com.badlogic.gdx.backends.gdx_backends_gwt' />
<inherits name='MyDemo' />
<entry-point
class='com.packtpub.libgdx.demo.client.GwtLauncher'
/>
<set-configuration-property name="gdx.assetpath"
value="../ android/assets" />
</module>
Similar to the
demo-html
project, the
demo-robovm
project has a special file called
robovm.xml
that saves the path to the
assets
folder in
demo-android
. Notice the
<directory>
key under
<resources>
, where the relative path to the
assets
folder
is set. However, this is not the end of resource setting for
demo-robovm
. In iOS
projects, there will be some resources specific to iOS, such as icons and default splash
images. You don't want to put this in your Android
assets
folder. So, put this in the
folder named
data
in your
demo-robovm
project. The path of the folder is also linked
in the
robovm.xml
file under
<resources>
.
Unlike Android, iOS version needs specific names for icons to show
in respective devices. For example,
Icon-72.png
is the name for
the app icon on iPad. You can find specifics of the icon name and
The following code snippet is taken from
robovm.xml
in our
demo-robovm
project:
<config>
<executableName>${app.executable}</executableName>
<mainClass>${app.mainclass}</mainClass>
<os>ios</os>
<arch>thumbv7</arch>
<target>ios</target>
<iosInfoPList>Info.plist.xml</iosInfoPList>
<resources>
<resource>
<directory>../android/assets</directory>
<includes>
<include>**</include>
</includes>
<skipPngCrush>true</skipPngCrush>
</resource>