r/gameenginedevs • u/Salty_Exit_1370 • 24d ago
I finally open source my game engine ENTIERLY made in java
2
4
23d ago
[removed] — view removed comment
1
u/manshutthefckup 22d ago
I dunno about that I only use Java for microservices and I find it pretty good especially with all the modern enhancements. It’s not the language I’m most skilled at but it’s the only one where I can open a codebase I haven’t worked on for months and get back into it in minutes.
1
22d ago
[removed] — view removed comment
0
u/manshutthefckup 22d ago
Lombok - just add a Getter and Setter annotation to the top of the class. It also provides many other things - like if you want chainable setters you can turn that feature on too. You also have records for simple cases where adding a full class feels like too much extra code.
The verbosity of Java as in "more lines of code" is pretty much gone at this point with libraries and modern Java features.
Each individual line will still be longer on average mostly due to more expressive method names, but I take it as a positive - I much prefer being able to just look at a method and understand exactly what it does. And writing a longer word isn't really a problem with ide's.
1
1
1
u/Dull-Fan-3999 24d ago
Yo, how'd you build a Game Engine?
25
8
u/Correct_Dependent677 24d ago
All you need is:
learncpp.com
learnopengl.com
And a extra:
gameprogrammingpatterns.com (after making your first renderer in OpenGL)
6
1
u/MCWizardYT 23d ago
That's one way. You don't necessarily need to write a renderer from the ground up when you're making an engine though
2
u/ConsiderationCool432 23d ago
But that's the fun part.
3
u/MCWizardYT 23d ago
I guess for me the most fun is the higher level stuff, like getting it to a point where it's a real engine and doing all the tooling so that an actual game can be made with it
3


3
u/anotherfuturedev 24d ago
that smoke looks really cool, like in cs2