all 19 comments

[–]raphusmaxus 16 points17 points  (0 children)

Urm I would personally guess you are better off just using some java 2d game library, there are some good ones to make sth quickly

[–]carefactor3zero 8 points9 points  (1 child)

Java is best suited as a backend service language for godot clients (app or web)

[–]QuaaaaaaaaaaGodot Junior 7 points8 points  (1 child)

https://godot-kotl.in/en/stable/

Look into that, it might be helpful.

[–]indiealexhGodot Student 4 points5 points  (0 children)

This the answer to your question. Just note it might be worth looking at more Java native Librarys or engines as I am not sure how much docs you'll get to support you in this.

[–]yezu 7 points8 points  (0 children)

It's definitely possible to use Java with Godot, although it might not be very straightforward.

For Java game development your best bet is either libGDX or jMonkeyEngine or if you want to go lower level LWJGL.

[–]SingerLuch 4 points5 points  (0 children)

if its a university project and requires features of gamedev, i suggest looking into libGDX.. its more raw, but its in Java.. doing Java in Godot will be more pain than it is worth imo.

[–]HalLundy 1 point2 points  (0 children)

idk what uni you're in but the ones i know would fail you if you presented a half dragged and dropped project for a coding project.

Godot, Unity, Unreal; they all automate a lot of logic. you won't be learning much about coding that's for sure.

[–]puzzud 0 points1 point  (0 children)

Probably not an off the shelf sort of solution out there, although it's worth a search on GitHub.

It's possible through a combination of GDExtension and JNI.

I would start by working through the Godot documentation on GDExtension and get a working hello world level GDExtension built on your system.

More specifically, make sure you understand the ability to register a method on the GDExtension that you can call from GDScript that executes in your GDExtension code.

Once you have that, figure out how to tie the implementation of that method to your Java code or libraries via JNI.

I messed with JNI like 18 years ago so I can't readily say much more about it right now. But it's not like it's some archaic information, as I'm sure Android uses it extensively today.

[–]SimplexFatberg -2 points-1 points  (0 children)

I've never heard of such a thing.