本文整理汇总了Java中playn.html.HtmlPlatform类的典型用法代码示例。如果您正苦于以下问题:Java HtmlPlatform类的具体用法?Java HtmlPlatform怎么用?Java HtmlPlatform使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
HtmlPlatform类属于playn.html包,在下文中一共展示了HtmlPlatform类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onModuleLoad
import playn.html.HtmlPlatform; //导入依赖的package包/类
@Override public void onModuleLoad () {
HtmlPlatform.Config config = new HtmlPlatform.Config();
HtmlPlatform platform = new HtmlPlatform(config);
platform.assets().setPathPrefix("cutegame/");
new CuteGame(platform);
platform.start();
}
示例2: onModuleLoad
import playn.html.HtmlPlatform; //导入依赖的package包/类
@Override public void onModuleLoad () {
HtmlPlatform.Config config = new HtmlPlatform.Config();
try {
config.scaleFactor = Float.parseFloat(Window.Location.getParameter("scale"));
} catch (Exception e) {} // oh well
HtmlPlatform plat = new HtmlPlatform(config);
plat.assets().setPathPrefix("showcase/");
new Showcase(plat, new Showcase.DeviceService() {
public String info() {
return "HTML [userAgent=" + Window.Navigator.getUserAgent() + "]";
}
});
plat.start();
}
示例3: start
import playn.html.HtmlPlatform; //导入依赖的package包/类
@Override
public void start() {
HtmlPlatform.Config config = new HtmlPlatform.Config();
// use config to customize the HTML platform, if needed
HtmlPlatform platform = HtmlPlatform.register(config);
platform.assets().setPathPrefix("playn-flurry/");
PlayN.run(new FlurryExample());
}
示例4: onModuleLoad
import playn.html.HtmlPlatform; //导入依赖的package包/类
@Override public void onModuleLoad () {
HtmlPlatform.Config config = new HtmlPlatform.Config();
// use config to customize the HTML platform, if needed
HtmlPlatform plat = new HtmlPlatform(config);
plat.assets().setPathPrefix("drop/");
new Drop(plat);
plat.start();
}
示例5: onModuleLoad
import playn.html.HtmlPlatform; //导入依赖的package包/类
@Override public void onModuleLoad () {
HtmlPlatform.Config config = new HtmlPlatform.Config();
HtmlPlatform platform = new HtmlPlatform(config);
platform.assets().setPathPrefix("hellogame/");
new HelloGame(platform);
platform.start();
}
示例6: onModuleLoad
import playn.html.HtmlPlatform; //导入依赖的package包/类
@Override public void onModuleLoad () {
HtmlPlatform.Config config = new HtmlPlatform.Config();
try {
config.scaleFactor = Float.parseFloat(Window.Location.getParameter("scale"));
} catch (Exception e) {} // oh well
HtmlPlatform plat = new HtmlPlatform(config);
plat.assets().setPathPrefix("physics/");
new Physics(plat);
plat.start();
}
示例7: start
import playn.html.HtmlPlatform; //导入依赖的package包/类
@Override
public void start() {
HtmlPlatform.Config config = new HtmlPlatform.Config();
// use config to customize the HTML platform, if needed
HtmlPlatform platform = HtmlPlatform.register(config);
platform.assets().setPathPrefix("playnuitutorial/");
PlayN.run(new TutorialApp());
}
示例8: onModuleLoad
import playn.html.HtmlPlatform; //导入依赖的package包/类
@Override public void onModuleLoad () {
HtmlPlatform.Config config = new HtmlPlatform.Config();
// use config to customize the HTML platform, if needed
HtmlPlatform plat = new HtmlPlatform(config);
plat.assets().setPathPrefix("ziggurat/");
new Ziggurat(plat);
plat.start();
}
示例9: start
import playn.html.HtmlPlatform; //导入依赖的package包/类
@Override
public void start() {
HtmlPlatform.Config config = new HtmlPlatform.Config();
// use config to customize the HTML platform, if needed
HtmlPlatform platform = HtmlPlatform.register(config);
platform.assets().setPathPrefix("pokeros/");
PlayN.run(new Pokeros(0.5f));
}
示例10: start
import playn.html.HtmlPlatform; //导入依赖的package包/类
@Override
public void start() {
HtmlPlatform platform = HtmlPlatform.register();
platform.assets().setPathPrefix("playnperf/");
PlayN.run(new PerfTest());
}