我如何使用TeaVM将我的libgdx项目部署到HTML / JS [英] How I deploy my libgdx project to HTML/JS using TeaVM

查看:266
本文介绍了我如何使用TeaVM将我的libgdx项目部署到HTML / JS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近使用 vis-runtime version 0.3.4 创建了一个 libGDX 项目。由于构建时间很长,并且需要单独的runtime-gwt项目,所以GWT支持在0.3.3版本的vis-runtime中被丢弃。可能TeaVM可以用作web后端,所以我正在寻找与vis-runtime库的整合TeaVM?



看看这个项目(集成libgdx与teaVM),使用Maven作为构建系统而不是Gradle。



帮助将不胜感激。

解决方案

我为libGDX创建了TeaVM后端作为原型。我没有时间去维护它,并认为libGDX社区的某些人对此感兴趣并选择了这个项目。没有人做过,所以后端不再被维护。您可以在libGDX社区论坛上提问,也许您会发现有兴趣开发我的原型的人。从我的角度来看,我可以帮助修复TeaVM中的错误,并告诉我们在TeaVM中这个或那个东西是如何工作的。



关于Gradle,没有官方支持,第三方插件可用: https://github.com/edibleday/teavm-gradle-plugin 。你可以检查源代码,并看到编写它很容易。如果您对此不满意,您甚至可以编写自己的Gradle插件。不过,我认为支持Gradle是一项比简单的Gradle插件更复杂的任务。例如,IDE集成也是必需的(即,IDE必须从 build.gradle )导入和设置项目。


I recently created a libGDX project using vis-runtime version 0.3.4. As due to long build times and requirement for separate runtime-gwt project, GWT support was dropped in 0.3.3 version of vis-runtime.

Maybe TeaVM can be used as web backend, so I am looking for integration of TeaVM with vis-runtime library ?

Take a look of this project (integration of libgdx with teaVM) that uses Maven as build system not Gradle.

Any help would be greatly appreciated.

解决方案

I created TeaVM backend for libGDX as a prototype. I have no time to maintain it and thought someone from libGDX community becomes interested and picks this project. No one did, so backend is not maintained anymore. You can ask question on libGDX community forums and may be you find someone who is interested in developing my prototype. From my side I can help with fixing bugs in TeaVM and telling how this or that thing works in TeaVM.

Regarding Gradle, there's no official support, bug 3rd party plugin is available: https://github.com/edibleday/teavm-gradle-plugin. You can examine source code and see that it's easy to write one. You can even write your own Gradle plugin if you are not satisfied with this one. However, I think that supporting Gradle is a little more complicated task than just wring Gradle plugin. For example, IDE integration is also needed (i.e. IDE must import and setup project from build.gradle).

这篇关于我如何使用TeaVM将我的libgdx项目部署到HTML / JS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆