Is Java a good gaming engine to use?

Deleted member 386356

Well-Known Member
OP
Member
Joined
Mar 18, 2016
Messages
161
Trophies
0
Age
33
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?
 

Foxi4

Endless Trash
Global Moderator
Joined
Sep 13, 2009
Messages
30,818
Trophies
3
Location
Gaming Grotto
XP
29,787
Country
Poland
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.
 

Deleted member 386356

Well-Known Member
OP
Member
Joined
Mar 18, 2016
Messages
161
Trophies
0
Age
33
XP
570
Country
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?
 

Foxi4

Endless Trash
Global Moderator
Joined
Sep 13, 2009
Messages
30,818
Trophies
3
Location
Gaming Grotto
XP
29,787
Country
Poland
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++.
 

smileyhead

I like cute stuff.
Member
Joined
Aug 31, 2015
Messages
4,798
Trophies
3
Age
23
Location
Budakeszi, Hungary
Website
sites.google.com
XP
10,549
Country
Hungary
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.
 

migles

All my gbatemp friends are now mods, except for me
Member
Joined
Sep 19, 2013
Messages
8,033
Trophies
0
Location
Earth-chan
XP
5,299
Country
China
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
Joined
Sep 17, 2009
Messages
2,572
Trophies
2
XP
3,770
Country
United States
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.
 

Tom Bombadildo

Dick, With Balls
Member
Joined
Jul 11, 2009
Messages
14,573
Trophies
2
Age
29
Location
I forgot
Website
POCKET.LIKEITS
XP
19,185
Country
United States
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

Nightwish

Well-Known Member
Member
Joined
Oct 16, 2013
Messages
431
Trophies
1
XP
1,534
Country
Portugal
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

catlover007

Developer
Developer
Joined
Oct 23, 2015
Messages
714
Trophies
1
XP
3,834
Country
Germany
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

General chit-chat
Help Users
  • Veho @ Veho:
    The fuuuuu---
  • Veho @ Veho:
    I thought it was an actual xBox at that price.
  • Sicklyboy @ Sicklyboy:
    I wanna grab a 360 Slim and a 360 E one of these days. Missed the boat of getting them at their lowest though, once they were discontinued. Could've got them for cheap back when I was a broke 20 something working at Target, but then again, I was a broke 20 something working at Target
  • Veho @ Veho:
    Being broke is no fun.
  • K3Nv2 @ K3Nv2:
    @Sicklyboy, $150 isn't that bad for a jtag slim on ebay
  • Veho @ Veho:
    I only wish it was actually playable.
  • Veho @ Veho:
    There's a guy on the Tube of You that makes playable mechanical arcade games out of Lego. This could work on the same principle.
  • Veho @ Veho:
    Just a couple of guys taking their manatee out for some fresh air, why you have to molest them?
  • Veho @ Veho:
    Stupid Chinese shop switched their shipping company and this one is slooooooow.
  • LeoTCK @ LeoTCK:
    STOP BUYING CHINESE CRAP THEN
  • LeoTCK @ LeoTCK:
    SUPPORT LOCAL PRODUCTS, MAKE REVOLUTION
  • LeoTCK @ LeoTCK:
    THEY KEEP REMOVING LOCAL SHIt AND REPLACING WItH INFERIOR CHINESE CRAP
  • LeoTCK @ LeoTCK:
    THATS WHY MY PARTNER CANT GET A GOOTWEAR HIS SIZE ANYMORE
  • LeoTCK @ LeoTCK:
    HE HAS BIG FOOT AND BIG DUCK
  • LeoTCK @ LeoTCK:
    d*ck i mean*
  • LeoTCK @ LeoTCK:
    lol
  • Veho @ Veho:
    Mkay.
  • Veho @ Veho:
    I just ordered another package from China just to spite you.
  • SylverReZ @ SylverReZ:
    Communism lol
  • SylverReZ @ SylverReZ:
    OUR products
  • The Real Jdbye @ The Real Jdbye:
    @LeoTCK actually good quality products are dying out because they can't compete with dropshipped chinese crap
    +1
    The Real Jdbye @ The Real Jdbye: @LeoTCK actually good quality products are dying out because they can't compete with dropshipped... +1