Java Love2D?

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
Gunroar:Cannon()
Party member
Posts: 1088
Joined: Thu Dec 10, 2020 1:57 am

Re: Java Love2D?

Post by Gunroar:Cannon() »

Maybe make a libgdx wrapper that calls it's functions like love2d? (I too like Java, though I'm also fine with dos and thens :3 )
The risk I took was calculated,
but man, am I bad at math.

-How to be saved and born again :huh:
User avatar
ddabrahim
Party member
Posts: 183
Joined: Mon May 17, 2021 8:05 pm
Contact:

Re: Java Love2D?

Post by ddabrahim »

I do believe the simplicity of Love2D is partly the result it is uses Lua since it was designed to be embedded in to C/C++ applications with no external dependencies so you can also just include any Lua library and run. This is why it is so small, simple, compact, ready to go.
Any other language would require 3rd party runtimes, compilers, wrappers and god knows what to get it compile and run.

There is only 1 alternative I know to be aiming for a similar approach and that is Raylib. It has tons of wrappers and bindings for all languages you can imagine including Java, C#. So it is maybe an option if you really dislike the syntax of Lua.

But if you want to stick with Love2D, the only options are transcompilers like

LunaScript
https://ifritjp.github.io/documents/en/lunescript/

TypeScript2Lua
https://typescripttolua.github.io

But I'm pretty sure it is going to be more trouble than its worth. You better off using a native Java, C#, JavaScript or TypeScript library if you prefer the syntax.
User avatar
pgimeno
Party member
Posts: 3548
Joined: Sun Oct 18, 2015 2:58 pm

Re: Java Love2D?

Post by pgimeno »

There are also MoonScript (a new language, designed around Lua), Funnel (Scheme/Lisp-like) and Glóa (another new language by forum member ReFreezed). I don't think any of these is similar to Java.
Post Reply

Who is online

Users browsing this forum: No registered users and 62 guests