Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (784)
Games in Android Showcase (234)
games submitted by our members
Games in WIP (858)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Java Game Programming in 2019  (Read 529 times)
0 Members and 1 Guest are viewing this topic.
Offline ShadyHippo

Junior Newbie


Exp: 3 years



« Posted 2019-03-08 23:27:32 »

Hello Everyone,

I am a Programmer in my third year of College and I'm looking to dig deeper into how to write a larger robust program. I have a game in mind (basically a 2D multiplayer top down shooter) and I have a fair amount of experience in Java (for a college student).

Java is by far my favorite language out of all of the ones that I have learned and I am the most comfortable in it which is why I chose it for this project.

I am taking a class on OpenGL this semester, and I made a very very primitive risk board game clone as a project using native JavaFX functions and nothing else. I have almost no other graphics or front end development experience.

So my questions are these:

  • Is it best to work in OpenGL for a 2D game since I know it a little and want to use it in order to learn it further?
  • Is LWJGL my best bet even though I can't find any great ways to use JavaFX with it?

I have done a lot of Googling but I can't find any recent answers to these questions (recent being after like June 2018).

I hope this isn't a redundant thread, and if it is that you will be patient with me.

THANKS IN ADVANCE!!!
Offline VaTTeRGeR
« Reply #1 - Posted 2019-03-09 11:16:58 »

Quote
Is it best to work in OpenGL for a 2D game since I know it a little and want to use it in order to learn it further?

If you just want to develop a robust 2D game use LibGDX. You can use LWJGL together with the LibGDX framework, since it's built on LWJGL. You can use LibGDX to create a foundation within which you can try doing some critical OpenGL stuff (shaders, etc) yourself, but you'll not learn nearly as much as with pure LWJGL and you'll have to work around some stuff that LibGDX does internally with LWJGL.

If you want to learn how to program 2D and 3D game engines (graphics, sound, etc) use LWJGL (it's basically OpenGL+OpenAL+Vulkan+OpenCL+...). This will give you a very good understanding of the OpenGL aspects of game development.

There are more than enough 2D OpenGL game tutorials out there to get you through every problem you'll encounter. You can also use tutorials made for other languages like C++ since the OpenGL calls remain very similar. You can find pre-made GUI libraries that sit on top of LWJGL, some are developed by people in this forum. These are generally not as easy to use as JavaFX though.


Quote
Is LWJGL my best bet even though I can't find any great ways to use JavaFX with it?

What do you want? Use an easy abstracted library like JavaFX or actual OpenGL? Again, if you want to learn OpenGL then LWJGL is what you will absolutely want to use.


Quote
I am taking a class on OpenGL this semester

I think you answered your own question with this.
Offline ShadyHippo

Junior Newbie


Exp: 3 years



« Reply #2 - Posted 2019-03-11 15:10:26 »

Thank you so much for the reply! I'm very excited to get started now that I'm confident I have a good direction.

  Smiley Smiley
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline cylab

JGO Kernel


Medals: 193



« Reply #3 - Posted 2019-03-12 12:15:44 »

  • Is LWJGL my best bet even though I can't find any great ways to use JavaFX with it?
Not a JavaFX binding, but maybe useful: LWJGUI - Application GUI Solution for LWJGL3

Mathias - I Know What [you] Did Last Summer!
Pages: [1]
  ignore  |  Print  
 
 

 
hadezbladez (1629 views)
2018-11-16 13:46:03

hadezbladez (644 views)
2018-11-16 13:41:33

hadezbladez (1628 views)
2018-11-16 13:35:35

hadezbladez (335 views)
2018-11-16 13:32:03

EgonOlsen (2679 views)
2018-06-10 19:43:48

EgonOlsen (2945 views)
2018-06-10 19:43:44

EgonOlsen (1642 views)
2018-06-10 19:43:20

DesertCoockie (2353 views)
2018-05-13 18:23:11

nelsongames (2257 views)
2018-04-24 18:15:36

nelsongames (2951 views)
2018-04-24 18:14:32
Deployment and Packaging
by philfrei
2019-02-17 20:25:53

Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45

Deployment and Packaging
by philfrei
2018-08-20 02:33:38

Deployment and Packaging
by philfrei
2018-08-20 02:29:55

Deployment and Packaging
by philfrei
2018-08-19 23:56:20
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
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!