tiny icon indicating copy to clipboard operation
tiny copied to clipboard

Provide JVM target export option.

Open kles4enko opened this issue 2 years ago • 3 comments

It is currenlty impossible to export game to jvm target, only web (JS). Please add additional option if possible.

kles4enko avatar May 18 '23 15:05 kles4enko

Hello!

I really appreciate your proposal.

Could you please let me know what you envision for an exported game for the JVM? Would it generate a runnable jar file? Additionally, I was wondering if you though about creating a zip file containing both the client and your game?

dwursteisen avatar May 24 '23 07:05 dwursteisen

I would expect that jvm export will do the same as existion JS export does – genereate the archive what I can extract and run.

But with JVM we have nuances. If you privide just .jar – you need to rely on some low version of Java, to make sure that everyone has it. But today not everyone need java on desktop, can face an issue java instalation required.

I, personally, would go with embedding jvm in zip together with the game. As a first iterations of this feature. On the second round, ideally, I would pack the app using 'jpackage' to privide OS native installation package. It will be great. Another interesting option is to compile using GraalVM into native executable. For such mini-games (or not mini) it will be just perfect option imo.

kles4enko avatar May 24 '23 13:05 kles4enko