Java game development is not for the faint of heart. Like everything else, it requires patience, comprehension, and practice.
These paragraphs are part of a tried-and-true track of experience levels that would be very beneficial to your growth. You don&amp;#039;t have to start at the beginning, but can jump in at any spot you know you are in.
Beginner, the most important and *required* step:
-For now since you are a beginner, learning Java syntax, core classes, and command line stuff is very important and should be your first priority. [b][i]Do not[/i][/b] jump straight into graphics. Make basic command line games using ASCII art. Make almost any game you can think of for the command line. Eclipse is a very useful and powerful tool and as much as you may like it too, I also recommend you to start with the command line. Write an entire command line app using just notepad, compile it, and run it. Start using packages and experience the pain and confusion of compiling and running programs that are in packages.
[b]*OPTIONAL*. Nowadays, it is best to start with LibGDX. Slick2D is another library with a slightly easier learning curve, but it&amp;#039;s buggy, no longer maintained, and many years old. [/b]
-When you feel you know and understand Java well enough, jump into graphics using Java2D. Java2D is the java.awt packages and subpackages. These allow you to do custom drawing and offer very, very powerful tools for making 2D graphical apps and games. Also you may learn Swing, Java&amp;#039;s GUI widget toolkit. It offers nice tools for making GUIs (Graphical User Interface).
-While you are becoming proficient with Java2D, you will learn and accept one grave and heart-breaking truth: Java2D is slow and unsuitable for professional and graphically expensive games. However, despite this shortcoming, it is the perfect playground for gaming beginners. [b]I advise you to not advance until you have learned basic game systems, designs, code architectural organization, etc...[/b]
[b]*OPTIONAL*[/b]
-Finally, when you notice you are ready for hard-core, speed-hungry games, you may jump into the OpenGL bandwagon. OpenGL is a portable high-level API to interface with graphics cards. It is portable in the sense that it works on almost all graphics cards and all systems, and high level since it abstracts away the differences in graphics card functions and drivers. This means you get to skip the slowness of Java2D and be able to directly access the power and performance of raw graphics card awesomeness. This may all seem neat and amazing but there is 1 drawback......its API is written in C (another language). This means you can&amp;#039;t really access it directly from Java without writing native code doing a lot of complicated stuff. Well fear not, a bunch of really cool people wrote a library that lets you access these functions and more, and these cool people named it the Lightweight Java Game Library (LWJGL). There is also another group of cool people who wrote a similar library and called it JOGL. They are both almost exactly the same and the only difference is in your perception of it and your choice. However, it seems the LWJGL community is far bigger than the JOGL community and there is a lot more support for it.
-Slick2D is an open-source library whose API looks very similar to Java2D yet uses LWJGL underneath. So it lets you make 2D games without worrying about the details underneath. However, it is best if you understand the underlying inner workings so you can gain experience and be able to understand any problems you run into.
-There are some libraries that try to simplify your life when making 2D/3D games and GUIs using OpenGL. Such tools include:
- Slick2D: an open-source library whose API looks very similar to Java2D yet uses LWJGL underneath. So it lets you make 2D games without worrying about the details underneath. However, it is best if you understand the underlying inner workings so you can gain experience and be able to understand any problems you run into.
-libGDX: open-source library that easily allows you to make OpenGL applications on PCs, HTML5, iOS and [b]Android[/b]
-Java Monkey Engine (JME): fully featured Java 3D engine built on LWJGL that has tons of tools for making professional-looking games
-jPCT: Another 3D engine built on LWJGL that to some is simpler and easier than JME yet isn&amp;#039;t as powerful.
-Ardor3D: A recently emerging 3D engine also built on LWJGL that looks very promising, from what I&amp;#039;ve heard it combines the ease of jPCT and the power of JME.
-Themable Widget Toolkit (TWL): A GUI widget toolkit. It is very powerful and allows for full customization of your widgets. This is the &amp;quot;Swing&amp;quot; version of OpenGL ;)
These tools and engines are nice to use if you don&amp;#039;t want to get too much into the details of OpenGL. However, it is better if you do because it is just nicer to understand what is going on behind the scenes and will help you debug any problems you run into. These libraries just ease the lives of those who already understand OpenGL, rather than helping ignorant impatient programmers who want to get their hands dirty in 3D designing.
Well this was a long post, and I hope you now understand the current situation of Java gaming and have a basic timeline of your future :)
If you need any help or assistance, we are always here to [i][b]guide[/b][/i] and [i][b]point[/b][/i] you along the way, not to spoon feed you with code. Remember, we&amp;#039;re all a bunch of chill dudes sacrificing our time to help newbies because we enjoy it 8)
You can also join us at the #lwjgl channel on the [url=http://webchat.freenode.net/?channels=lwjgl]Freenode IRC network[/url] for more help, but know that if no one responds, do idle since we are all on different timezones (half of them live in Europe!).
Good luck!!!! :D
[b]LINKS:[/b]
-Java Resources: http://www.java-gaming.org/index.php?action=resources
-[url=http://www.arcsynthesis.org/gltut/]OpenGL tutorials[/url] - [url=http://www.bitbucket.org/ra4king/lwjgl-shader-tutorials]Java ports[/url]

Java game development is not for the faint of heart. Like everything else, it requires patience, comprehension, and practice.

These paragraphs are part of a tried-and-true track of experience levels that would be very beneficial to your growth. You don't have to start at the beginning, but can jump in at any spot you know you are in.

Beginner, the most important and *required* step:-For now since you are a beginner, learning Java syntax, core classes, and command line stuff is very important and should be your first priority. Do not jump straight into graphics. Make basic command line games using ASCII art. Make almost any game you can think of for the command line. Eclipse is a very useful and powerful tool and as much as you may like it too, I also recommend you to start with the command line. Write an entire command line app using just notepad, compile it, and run it. Start using packages and experience the pain and confusion of compiling and running programs that are in packages.

*OPTIONAL*. Nowadays, it is best to start with LibGDX. Slick2D is another library with a slightly easier learning curve, but it's buggy, no longer maintained, and many years old. -When you feel you know and understand Java well enough, jump into graphics using Java2D. Java2D is the java.awt packages and subpackages. These allow you to do custom drawing and offer very, very powerful tools for making 2D graphical apps and games. Also you may learn Swing, Java's GUI widget toolkit. It offers nice tools for making GUIs (Graphical User Interface).

-While you are becoming proficient with Java2D, you will learn and accept one grave and heart-breaking truth: Java2D is slow and unsuitable for professional and graphically expensive games. However, despite this shortcoming, it is the perfect playground for gaming beginners. I advise you to not advance until you have learned basic game systems, designs, code architectural organization, etc...*OPTIONAL*

-Finally, when you notice you are ready for hard-core, speed-hungry games, you may jump into the OpenGL bandwagon. OpenGL is a portable high-level API to interface with graphics cards. It is portable in the sense that it works on almost all graphics cards and all systems, and high level since it abstracts away the differences in graphics card functions and drivers. This means you get to skip the slowness of Java2D and be able to directly access the power and performance of raw graphics card awesomeness. This may all seem neat and amazing but there is 1 drawback......its API is written in C (another language). This means you can't really access it directly from Java without writing native code doing a lot of complicated stuff. Well fear not, a bunch of really cool people wrote a library that lets you access these functions and more, and these cool people named it the Lightweight Java Game Library (LWJGL). There is also another group of cool people who wrote a similar library and called it JOGL. They are both almost exactly the same and the only difference is in your perception of it and your choice. However, it seems the LWJGL community is far bigger than the JOGL community and there is a lot more support for it.

-There are some libraries that try to simplify your life when making 2D/3D games and GUIs using OpenGL. Such tools include: - Slick2D: an open-source library whose API looks very similar to Java2D yet uses LWJGL underneath. So it lets you make 2D games without worrying about the details underneath. However, it is best if you understand the underlying inner workings so you can gain experience and be able to understand any problems you run into. -libGDX: open-source library that easily allows you to make OpenGL applications on PCs, HTML5, iOS and Android -Java Monkey Engine (JME): fully featured Java 3D engine built on LWJGL that has tons of tools for making professional-looking games -jPCT: Another 3D engine built on LWJGL that to some is simpler and easier than JME yet isn't as powerful. -Ardor3D: A recently emerging 3D engine also built on LWJGL that looks very promising, from what I've heard it combines the ease of jPCT and the power of JME. -Themable Widget Toolkit (TWL): A GUI widget toolkit. It is very powerful and allows for full customization of your widgets. This is the "Swing" version of OpenGL

These tools and engines are nice to use if you don't want to get too much into the details of OpenGL. However, it is better if you do because it is just nicer to understand what is going on behind the scenes and will help you debug any problems you run into. These libraries just ease the lives of those who already understand OpenGL, rather than helping ignorant impatient programmers who want to get their hands dirty in 3D designing.

Well this was a long post, and I hope you now understand the current situation of Java gaming and have a basic timeline of your future If you need any help or assistance, we are always here to guide and point you along the way, not to spoon feed you with code. Remember, we're all a bunch of chill dudes sacrificing our time to help newbies because we enjoy it You can also join us at the #lwjgl channel on the Freenode IRC network for more help, but know that if no one responds, do idle since we are all on different timezones (half of them live in Europe!).

-Slick2D, also mentioned above, is an open-source library whose API looks very similar to Java2D yet uses LWJGL underneath. So it lets you make 2D games using the same API you will soon learn and love without worrying about the details underneath.

-Slick2D, also mentioned above, is an open-source library whose API looks very similar to Java2D yet uses LWJGL underneath. So it lets you make 2D games using the same API you will soon learn and love without worrying about the details underneath.

Doesn't Slick use the depreciated parts of OpenGL?

Deprecated*

Yeah, but it's useful for learning how to design games without worrying about graphics yet, and without suffering through Java2D

Yeah, but it's useful for learning how to design games without worrying about graphics yet, and without suffering through Java2D

It's a possible approach but the reverse one has some advantages too. In my humble opinion, it is better to understand the low level APIs before using middle level APIs and high level APIs, it drives you much more autonomous even though it is harder, understanding OpenGL is helpful to use 3D engines based on it, you're able to fix almost any bug in their implementations and you can use them with a bigger ease when you understand the underlying concepts on which they are based, I explained that here.

Great post. In the past two months I've taught myself pretty much everything here and learnt most of the basic concepts of game development. Although I was planning to progress on to LibGDX anyway, this post is nonetheless helpful. In the near future I'll finish up teaching myself about collections then start learning about OpenGL. Once again, thanks for the great post.

I've been a 3d artist for quite some time now, however I wanted to code so I started learning programming about 6 months ago. I'm quite the noob, I started with python and now I'm moving into Java mostly because I like the OO approach and I prefer open source tools.

Anyway, I want to make a basic engine with the awt package, just to get a better understanding of how a game engine works. I have found some videos here and there but they not so great, I'm wondering if you guys know about a good tutorial for this, or a source code I can look into?

Personally, I won't use JavaFX/OpenJFX until it gets correctly integrated in both Oracle Java and OpenJDK. There are already tons of libraries not based on it to create games, its memory footprint is higher than the one of Swing and it's less reliable (and slower) on less capable hardware (especially when it uses software rendering as a fallback).

This page of the wiki needs to be updated as Ardor3D no longer exists, both Ardor3D and JMonkeyEngine uses several renderers based on several sets of Java bindings and JogAmp's Ardor3D Continuation supports only JogAmp as its name implies.

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org