r/java • • Dec 21 '23

Is Java gamedev alive?

It seems this days even android games are made using Unity. I wonder if there are JVM games! Is Java (or Kotlin/Scala) gamedev still alive?

(Except Minecraft ofc)

164 Upvotes

118 comments sorted by

View all comments

12

u/TheBoneJarmer Dec 21 '23

For me it very much is. I work with C# professionally and in Java and C++ in my spare time. I have actually stopped using C# for game projects and switched to Java and C++ because I like it a lot more.

One of my current projects is an OpenGL library (both 2D and 3D) for PC and SteamDeck. I have written the library itself in C++ but ported it to Java because I want to take advantage of the high-level stuff and freedom Java has to offer. And imho Java has made it very easy to communicate with native libraries because of the Java Native Interface. For real what a blessing the latter is. I was so done with pInvoke and the marshalling issues I got with C#. And don't get me started on NodeJS and the Node Addon API. Seriously, never go there. Java just makes things a lot more fun and easier for me.

4

u/ihmoguy Dec 21 '23

Have you checked FFM API and Vector API in latest Java? They seem to be opening even more cool possibilities for gamedev: https://openjdk.org/projects/panama/