r/learnjava • u/Senior_Quevos • Aug 16 '20
Does anyone know any good sources for game making in Java?
I have zero experience so I think something for beginners will be the best. Videos work and books work. If you know any sites or softwares that give you challenges that would also be great.
6
u/Japke90 Aug 16 '20
Humble bundle frequently has a lot on Java (and JavaScript,Python,...) game development.
2
3
u/PapaPancake8 Aug 17 '20
Slay the Spire is an in depth game made from java. Follow the trail for finding missing information to get access to the source code and find out more.
2
2
Aug 17 '20
Check out FXGL for Java game development ! https://webtechie.be/post/2020-05-07-getting-started-with-fxgl/
2
1
u/maybe_tom__ Aug 17 '20
Oof, FXGL doc's are few and tutorials sometimes are incompatible... is a good library but is hard in the beginning..
1
1
u/pyordie Aug 17 '20 edited Aug 17 '20
If you're making a game in Java for fun/learning: Godot and maybe jMonkeyEngine. Godot has a great tutorial.
If you're making a game in Java because you want to start down the road of becoming a game dev: drop Java and start learning C++
1
u/Senior_Quevos Aug 17 '20
It’s more for fun. But I’ve heard Java is a good thing to learn and I’ll try to learn C# or C++ afterwards.
1
u/pyordie Aug 17 '20
Good deal - if its for fun then any language is a good language. And Java is always a good thing to learn (it'll be around for the next century).
Here's that link for the Godot tutorial, I highly recommend it, you end up building a pretty kick ass game out of it. The docs for Godot in general are very well developed and maintained.
https://docs.godotengine.org/en/stable/getting_started/step_by_step/your_first_game.html
1
u/Senior_Quevos Aug 17 '20
Ok, thanks. Is this a good thing to start with or should I look into other things first?
1
u/pyordie Aug 17 '20
What you're really learning with the tutorial is how to work the editor, as well as the framework Godot uses to create and render things like 'nodes' and 'scenes' (the tutorial actually starts here and talks about this stuff in a pretty basic way)
I think all it really requires is an basic understanding of control flow and object oriented concepts. If you have zero experience with these things, then check out the MOOC Tutorial in the sidebar.
Honestly, I think a side game dev project is a great way to learn the basics of programming and OOP, especially since learning Java can lead you to feeling somewhat detached from the code you're writing. So if you you find yourself struggling with understanding what' going on in tutorial, don't give up on it, just put it on the side burner for a little bit and fall back on the more standard tutorial material that's listed in the sidebar. Then go back to the game when you feel like you have a little more information, and rinse and repeat!
1
u/Senior_Quevos Aug 17 '20
Alright
1
u/pyordie Aug 17 '20
Actually, you know what? I'm completely off base. Java has very little to with Godot. Godot ses its own scripting language that's more like Python than Java. Still a great framework to get started with for basic 2D games, but jMonkeyEngine is your best bet if you want to learn Java side by side with game development. Sorry I led you astray!
1
u/Senior_Quevos Aug 17 '20
No worries! I’ll probably still take a look. And I will look at jmonkeyEngine when I find the time.
1
2
u/TacticalWalther Aug 17 '20
If you're trying to get into game design, are you sure Java is what you want to learn? Most people don't use that for game design, they use C++ and Python
1
u/phaeton21 Aug 17 '20
I figured python would be a bit slow for games.
1
u/7734128 Dec 04 '20
I'm pretty sure you write your logic in python and then you use libraries which utilizes native implementations for things like graphics. But that's just a guess.
1
0
u/Ajha7 Aug 16 '20
I don’t actually know anything about game making in Java(sorry I know this is what you specifically asked for) but I know that Lua and LÖVE are good languages for game making:)
1
u/Senior_Quevos Aug 16 '20
I’ve heard of lua, never heard of LÖVE though. What is LÖVE good for? (Like big or small projects for example)
-7
1
0
u/denverdave23 Aug 16 '20
Java isn't great for games. But, libgdx is pretty good. It's worth looking up and has good tutorials.
1
u/Senior_Quevos Aug 17 '20
Really? I thought it was pretty versatile. Also, isn’t libgdx a game engine?
3
u/denverdave23 Aug 17 '20
It's more of a library than a real engine. But, yeah, and it has good tutorials on using it. It's a good place to start if you want to write games on Java.
Really, what you want is a good engine, and then use whatever language it supports. Like, unity is a damn good gaming engine /environment. It uses C# and its own language. So, C# tends to be more popular. It's not the language, it's the tool. Java really doesn't have an equivalent.
1
u/Senior_Quevos Aug 17 '20
Yeah. Are there any good engines that use Java?
1
u/iloveeveryonebutyou1 Aug 17 '20
There is https://jmonkeyengine.org/
But if you have zero Java experience you might not be as productive in it as someone with a Java background would.
1
u/Senior_Quevos Aug 17 '20
makes sense
1
u/iloveeveryonebutyou1 Aug 17 '20
Godot is very easy to get started imo, and really easy to use UI and friendly scripting language. And its entirely cross platform from web, mac, pc, ios, andriod, and linux and maybe more.
3
u/denverdave23 Aug 17 '20
Not that I know of. Nothing like unity for sure. I've used libgdx to do a few small 2d game side projects. Just for fun. But I'm not a game maker. That being said, if you just want to have fun writing in a language that you know, libgdx is pretty good.
10
u/Nguyenhuynh123 Aug 16 '20
Maybe you can take a look at this one. https://m.youtube.com/playlist?list=PLah6faXAgguMnTBs3JnEJY0shAc18XYQZ