Is Java a good gaming engine to use?

Deleted member 386356

Well-Known Member
Member
Joined
Mar 18, 2016
Messages
161
Reaction score
50
Trophies
0
Age
35
XP
570
Country
I "accidentally" learned some Java coding whilst doing a very small and easy Minecraft mod (for pete's sake), and from seeing Java coding in hand overall, i see it as a very convenient game engine, i could probably use Java for a game in the future.
Although is it a really good game engine to use? at least for 2D side scrollers?
 
Java is not an engine, it's a programming language. You can make a game in it if you want to, sure, but if you only know "a little" of it, chances are you'll need to use some kind of a pre-existing framework that'll do the heavy lifting for you so you don't have to worry about lower level stuff like drawing on the screen.
 
Java is not an engine, it's a programming language. You can make a game in it if you want to, sure, but if you only know "a little" of it, chances are you'll need to use some kind of a pre-existing framework that'll do the heavy lifting for you so you don't have to worry about lower level stuff like drawing on the screen.
So it's good for games?
 
It's hard to answer that question because it heavily depends on the game you're trying to make. If you want to make a silly side-scroller in 2D like you're saying in the OP, you don't need anything that Java wouldn't be able to give you. If you're coding Crysis 4, you might want to look for a language with more oomph and lower-level access, like C++.
 
Minecraft is written in Java.
It runs like shit.

Minecraft Windows 10 Edition is written in C++ (or C, I dunno.)
It runs much better than the Java version.

Go figure.
every 3d game that i played in java played like shit...
and i could play skyrim and other games at a good framerate....
 
  • Like
Reactions: smileyhead
it's terrible.

Minecraft is written in Java.
It runs like shit.

Minecraft Windows 10 Edition is written in C++ (or C, I dunno.)
It runs much better than the Java version.

Go figure.

every 3d game that i played in java played like shit...
and i could play skyrim and other games at a good framerate....
I logged into Runescape when I was really drunk after 10 years of not even thinking about it, and these days it's really advanced and the graphics have come a long way from barely animated flat ugly sprites. I believe the entire game is still written as a Java web applet, which is a pretty impressive feat. I don't really like the game anymore, but I am still imoressed what Jagex could do with measly Java.
 
I logged into Runescape when I was really drunk after 10 years of not even thinking about it, and these days it's really advanced and the graphics have come a long way from barely animated flat ugly sprites. I believe the entire game is still written as a Java web applet, which is a pretty impressive feat. I don't really like the game anymore, but I am still imoressed what Jagex could do with measly Java.
Actually, the new Runescape uses HTML5. It abandoned Java sometime this year (though I think the old version still uses it)
 
  • Like
Reactions: Subtle Demise
So it's good for games?
Java and the Java ecosystem is fine or even great for many things, but not usually for gaming, probably just because nobody bothered to make it good at it. If you want to make a not very graphically demanding game, you can perfectly do it.
But I'd advise you to do what I'll do when I get around to try to make a game: use an existing engine like Unity or Godot that have the hard generic parts made for you and try to get a simple prototype running quickly, that will motivate you enough to finish your idea.

--------------------- MERGED ---------------------------

Don't use Java. It's full of security holes and also is a messy, slow programming language.
C++ is way better.
C++ isn't full of security holes because it comes with barely any libraries for a modern application. And security is the least of the concerns in making a game.
The language is verbose, not messy, and the JVM is pretty good, actually: you just have to wait for the JIT to start working, which is bad for games.
 
  • Like
Reactions: Subtle Demise
This thread is full myths about Java. Nowdays Java is fully suitable for making games(unless you want to make some big AAA graphics are everything title). Minecraft gets often referenced here, but Minecraft has terrible rendering code.
Also the connection between Java and security holes is only relevant when it comes to Java applet within the browser.

I can recommend this framework for making games in Java, it gives you everything you need to make 2D and 3D games: https://libgdx.badlogicgames.com/
 
  • Like
Reactions: Nightwish

Site & Scene News

Popular threads in this forum