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());
}
Aggregations