Search in sources :

Example 1 with HtmlPlatform

use of playn.html.HtmlPlatform in project playn by threerings.

the class TestsGameHtml method start.

@Override
public void start() {
    HtmlPlatform.Config config = new HtmlPlatform.Config();
    try {
        config.scaleFactor = Float.parseFloat(Window.Location.getParameter("scale"));
    }// oh well
     catch (Exception e) {
    }
    HtmlPlatform platform = HtmlPlatform.register(config);
    platform.setTitle("Tests");
    platform.assets().setPathPrefix("testsgame/");
    HtmlPlatform.disableRightClickContextMenu();
    PlayN.run(new TestsGame());
}
Also used : TestsGame(playn.tests.core.TestsGame) HtmlPlatform(playn.html.HtmlPlatform)

Aggregations

HtmlPlatform (playn.html.HtmlPlatform)1 TestsGame (playn.tests.core.TestsGame)1