Android 脚本层 - LibGDX
我已经在 LibGDX 之上编写一个完整的游戏引擎有一段时间了,并且用 Javascript 编写了几乎每个游戏对象(我创建了一个基于复合的游戏对象系统)。对于 JS 解释,我使用了 Rhino 引擎,它在我的 ubuntu 系统上运行得非常好,但是当我尝试在 Android 上运行它时,我根本无法编译它,从我读到的内容来看,这是因为Google 没有使用支持 Rhino 的标准 Java 实现,但现在我看到了 SL4A 项目的支持,但是我一直在寻找一个与 Android 兼容的简单的 Rhino jar 文件,但在浏览了下载后,我发现所有发现是APK 文件似乎没有该库,根据我的阅读,该 APK 应该是一个模板项目,但是如何在没有 jar 包的情况下将它与我现有的代码一起使用?也许我完全没有抓住重点?
I've been writing a full game engine on top of LibGDX for sometime now and had written almost every single game object in Javascript (I created a composite based game object system). For the JS interpretation, I used the Rhino engine which on my ubuntu system, works phenomenally well, however when I tried to run it on Android, I was not able to get it to compile at all and from what I HAD read, it's because Google didn't use a standard Java implementation that supported Rhino, but now I'm seeing the support with the SL4A project, however I was looking for a simple Rhino jar file that was compatible with Android but after looking through the downloads, all I found were APK files that did not appear to have the library and from what I have read, the APK is suppose to be a template project, but how can I use it with my existing code without a jar package? Maybe I'm totally missing the point?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
似乎 SL4A Rhino 存储库获取 Rhino 所需的所有附加组件(其中 rhino1_7R2-dex.jar)在安卓上运行。
It seems SL4A Rhino repository has all the necessary add-ons (among them rhino1_7R2-dex.jar) to get Rhino running on Android.