use of playn.robovm.RoboPlatform in project playn by threerings.
the class TestsGameRoboVM method didFinishLaunching.
@Override
public boolean didFinishLaunching(UIApplication app, UIApplicationLaunchOptions launchOpts) {
// create a full-screen window
CGRect bounds = UIScreen.getMainScreen().getBounds();
UIWindow window = new UIWindow(bounds);
// configure and register the PlayN platform; start our game
RoboPlatform.Config config = new RoboPlatform.Config();
config.orients = UIInterfaceOrientationMask.All;
RoboPlatform pf = RoboPlatform.register(window, config);
pf.run(new TestsGame());
// make our main window visible
window.makeKeyAndVisible();
addStrongRef(window);
return true;
}
Aggregations