Search in sources :

Example 1 with IOSApplication

use of com.badlogic.gdx.backends.iosrobovm.IOSApplication in project shattered-pixel-dungeon-gdx by 00-Evan.

the class IOSLauncher method createApplication.

@Override
protected IOSApplication createApplication() {
    IOSApplicationConfiguration config = new IOSApplicationConfiguration();
    final String version = NSBundle.getMainBundle().getInfoDictionaryObject("CFBundleShortVersionString").toString();
    final int versionCode = Integer.parseInt(NSBundle.getMainBundle().getInfoDictionaryObject("CFBundleVersion").toString());
    return new IOSApplication(new ShatteredPixelDungeon(new PDPlatformSupport(version, versionCode, null, new IOSInputProcessor())), config);
}
Also used : IOSApplicationConfiguration(com.badlogic.gdx.backends.iosrobovm.IOSApplicationConfiguration) IOSApplication(com.badlogic.gdx.backends.iosrobovm.IOSApplication) PDPlatformSupport(com.watabou.utils.PDPlatformSupport) ShatteredPixelDungeon(com.shatteredpixel.shatteredpixeldungeon.ShatteredPixelDungeon)

Aggregations

IOSApplication (com.badlogic.gdx.backends.iosrobovm.IOSApplication)1 IOSApplicationConfiguration (com.badlogic.gdx.backends.iosrobovm.IOSApplicationConfiguration)1 ShatteredPixelDungeon (com.shatteredpixel.shatteredpixeldungeon.ShatteredPixelDungeon)1 PDPlatformSupport (com.watabou.utils.PDPlatformSupport)1