Is Java a good gaming engine to use?

Discussion in 'General Gaming Discussion' started by sodaddict, Sep 16, 2016.

  1. sodaddict
    OP

    sodaddict GBAtemp Regular

    Member
    147
    44
    Mar 18, 2016
    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?
     


  2. Foxi4

    Foxi4 On the hunt...

    pip Reporter
    23,537
    21,496
    Sep 13, 2009
    Poland
    Gaming Grotto
    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.
     
  3. sodaddict
    OP

    sodaddict GBAtemp Regular

    Member
    147
    44
    Mar 18, 2016
    So it's good for games?
     
  4. Mrrraou

    Mrrraou GBAtemp Advanced Maniac

    Member
    1,869
    2,167
    Oct 17, 2015
    France
    no
     
    Minnow, Dr Eggman, boomario and 4 others like this.
  5. Wuigi

    Wuigi GBAtemp Fan

    Member
    307
    104
    Sep 14, 2012
    United States
    You can learn some C++ accidently if you want to do more lower level stuff.
     
    TheVinAnator likes this.
  6. migles

    migles Mei the sexiest bae

    Member
    GBAtemp Patron
    migles is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    6,797
    4,558
    Sep 19, 2013
    Saint Kitts and Nevis
    my dad works for nintendo.
    it's terrible.
     
    Davidosky99 and Tomato Hentai like this.
  7. Foxi4

    Foxi4 On the hunt...

    pip Reporter
    23,537
    21,496
    Sep 13, 2009
    Poland
    Gaming Grotto
    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++.
     
  8. smileyhead

    smileyhead Bow ties are cool.

    Member
    GBAtemp Patron
    smileyhead is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    2,576
    5,468
    Aug 31, 2015
    Hungary
    Budakeszi, 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.
     
  9. migles

    migles Mei the sexiest bae

    Member
    GBAtemp Patron
    migles is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    6,797
    4,558
    Sep 19, 2013
    Saint Kitts and Nevis
    my dad works for nintendo.
    every 3d game that i played in java played like shit...
    and i could play skyrim and other games at a good framerate....
     
    smileyhead likes this.
  10. MarkDarkness

    MarkDarkness Deliverator

    Member
    708
    149
    Dec 17, 2009
    Poland
    Just use Game Maker. No need for learning a language in this case.
     
  11. Touko White

    Touko White Scarlet's Clone

    Member
    671
    1,408
    Jan 12, 2016
    United Kingdom
    England
    Don't use Java. It's full of security holes and also is a messy, slow programming language.
    C++ is way better.
     
    Tomato Hentai likes this.
  12. Subtle Demise

    Subtle Demise h

    Member
    1,317
    1,319
    Sep 17, 2009
    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.
     
  13. Tom Bombadildo

    Tom Bombadildo Honk!

    pip Contributor
    GBAtemp Patron
    Tom Bombadildo is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    10,550
    10,481
    Jul 11, 2009
    United States
    I forgot
    Actually, the new Runescape uses HTML5. It abandoned Java sometime this year (though I think the old version still uses it)
     
    Subtle Demise likes this.
  14. Davidosky99

    Davidosky99 Eevee :3

    Banned
    2,582
    1,570
    Jun 7, 2015
    Porto
    And flash isn't?
     
  15. Touko White

    Touko White Scarlet's Clone

    Member
    671
    1,408
    Jan 12, 2016
    United Kingdom
    England
    When did I imply that Flash didn't have security holes? -.-
     
  16. Davidosky99

    Davidosky99 Eevee :3

    Banned
    2,582
    1,570
    Jun 7, 2015
    Porto
    I didn't only mention security holes...
     
  17. Nightwish

    Nightwish GBAtemp Fan

    Member
    367
    203
    Oct 16, 2013
    Portugal
    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.

    — Posts automatically merged - Please don't double post! —

    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.
     
    Subtle Demise likes this.
  18. tech3475

    tech3475 GBAtemp Advanced Fan

    Member
    610
    271
    Jun 12, 2009
    MarkDarkness likes this.
  19. MarkDarkness

    MarkDarkness Deliverator

    Member
    708
    149
    Dec 17, 2009
    Poland
  20. catlover007

    catlover007 GBAtemp Regular

    Member
    158
    178
    Oct 23, 2015
    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/
     
    Nightwish likes this.