This commit is contained in:
Bryce Covert
2017-05-31 20:00:33 -07:00
parent 6580bbb52b
commit 67cbac3dbd
42 changed files with 398 additions and 167 deletions

View File

@@ -21,13 +21,16 @@ public class IOSLauncher extends IOSApplication.Delegate {
config.preferredFramesPerSecond = 30;
config.useAccelerometer=false;
config.useCompass=false;
System.out.println("application created.");
RT.var("clojure.core", "require").invoke(Symbol.intern("advent.core"));
System.out.println("clojure loaded");
try {
NSDictionary infoDictionary = NSBundle.getMainBundle().getInfoDictionary();
String version = infoDictionary.get(new NSString("CFBundleShortVersionString")).toString();
RT.var("advent.version", "version-override").bindRoot(version);
Game game = (Game) RT.var("advent.core", "advent").deref();
System.out.println("game loaded");
return new IOSApplication(game, config);
} catch (Exception e) {
e.printStackTrace();