本文整理汇总了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();
}
开发者ID:playn,项目名称:playn-samples,代码行数:8,代码来源:CuteGameHtml.java
示例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();
}
开发者ID:playn,项目名称:playn-samples,代码行数:15,代码来源:ShowcaseHtml.java
示例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());
}
开发者ID:playn,项目名称:playn-samples,代码行数:9,代码来源:FlurryExampleHtml.java
示例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();
}
开发者ID:playn,项目名称:playn-samples,代码行数:9,代码来源:DropHtml.java
示例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();
}
开发者ID:playn,项目名称:playn-samples,代码行数:8,代码来源:HelloGameHtml.java
示例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();
}
开发者ID:playn,项目名称:playn-samples,代码行数:11,代码来源:PhysicsHtml.java
示例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());
}
开发者ID:donkirkby,项目名称:playn-ui-tutorial,代码行数:9,代码来源:TutorialAppHtml.java
示例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();
}
开发者ID:samskivert,项目名称:mashups,代码行数:9,代码来源:ZigguratHtml.java
示例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));
}
开发者ID:samskivert,项目名称:mashups,代码行数:9,代码来源:PokerosHtml.java
示例10: start
import playn.html.HtmlPlatform; //导入依赖的package包/类
@Override
public void start() {
HtmlPlatform platform = HtmlPlatform.register();
platform.assets().setPathPrefix("playnperf/");
PlayN.run(new PerfTest());
}
开发者ID:playn,项目名称:playn-perf,代码行数:7,代码来源:PerfTestHtml.java
注:本文中的playn.html.HtmlPlatform类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论