Search in sources :

Example 1 with SWTPlatform

use of playn.java.SWTPlatform in project playn by threerings.

the class TestsGameJava method main.

public static void main(String[] args) {
    SWTPlatform.Config config = new SWTPlatform.Config();
    if (args.length > 0) {
        config.scaleFactor = Float.parseFloat(args[0]);
    }
    config.width = 800;
    config.height = 600;
    SWTPlatform platform = SWTPlatform.register(config);
    platform.setTitle("Tests");
    // plug in a lwjgl implementation for fullscreen test
    setHost(new LWJGLFullscreen());
    run(new TestsGame());
}
Also used : TestsGame(playn.tests.core.TestsGame) SWTPlatform(playn.java.SWTPlatform)

Aggregations

SWTPlatform (playn.java.SWTPlatform)1 TestsGame (playn.tests.core.TestsGame)1