Playn 支持库和引擎的可用性

发布于 2024-12-18 08:04:41 字数 287 浏览 3 评论 0原文

最近 playn 演示中的这张幻灯片清楚地展示了 playn 核心 API 之间的区别,以及第三方库和引擎。我希望尽可能少地重新实现,是否有一种明显的方法来获取这些与 playn 结合的库和引擎?

展示中使用的 playn-jbox2d.jar,我假设这是 playn 的 java box 2d 库的特定构建?其他库是否需要类似的手动移植,或者 Android 库是否可以轻松重用?

This slide in a recent playn presentation shows clearly the differentiation between playn Core API, and third party libs and engines. I wish to re-implement as little as possible, is there an obvious method to source these libs and engines that will combine with playn?

The playn-jbox2d.jar used in the showcase, I assume this a specific build of the java box 2d lib for playn? Will similar manual porting be required for other libraries or can e.g. Android libs be easily reused?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

毁梦 2024-12-25 08:04:41

PlayN 是与 Android 完全不同的 API,因此您无法将 Android 游戏开发库与 PlayN 一起使用。已经为 PlayN 编写了更高级别的库(例如,http://github.com/thirdrings/flashbang- playn),但由于该平台相对较新,因此直接存在的此类库并不像 Android 那么多。

PlayN is a completely different API than Android, so you cannot use an Android game development library with PlayN. Higher level libraries are already being written for PlayN (for example, http://github.com/threerings/flashbang-playn), but since the platform is relatively new, not as many such libraries exist as for Android directly.

愁杀 2024-12-25 08:04:41

您必须意识到,当您使用所有平台都使用的 java 编写时,java 编译到不同平台的方法有很大不同(适用于 Android 的 Android SDK、适用于 html 的 GWT 等)。如果您有一个仅使用每个平台的每个编译路径都支持的 java 子集的库,您应该能够开箱即用地使用它,但这不太可能。

You have to realize that while you write in java that is used by all platforms, the method of how that java is compiled to the different platform is widely different (Android SDK for Android, GWT for html etc). If you have a library that uses only a subset of java that is supported on each compilation path for evey platform you should be able to use it out of the box but this is not very likely.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文