Search in sources :

Example 1 with RoboPlatform

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;
}
Also used : TestsGame(playn.tests.core.TestsGame) CGRect(org.robovm.apple.coregraphics.CGRect) RoboPlatform(playn.robovm.RoboPlatform) UIWindow(org.robovm.apple.uikit.UIWindow)

Aggregations

CGRect (org.robovm.apple.coregraphics.CGRect)1 UIWindow (org.robovm.apple.uikit.UIWindow)1 RoboPlatform (playn.robovm.RoboPlatform)1 TestsGame (playn.tests.core.TestsGame)1