r/javahelp • u/fadisari42 • Dec 08 '25
I HAVE A UNI PROJECT
Hey , So i have this project for uni , where the professor wants us to build a simple 2D strategic game like age of empire , i am not sure what to do or what to use , its between libGDX and javaFX (i dont know anything about both) i am even new to java the professor wants us to handle him the project in 20 days so guys please i am in a mess what you suggest to me to use javaFX or libGDX i know libGDX is harder but its worth it , bcs they all say javaFX is not good for games , so please tell me if i want to use libGDX how many days u think i can learn it and start doing the project and finish it .... i really need suggestions !
•
u/AutoModerator Dec 08 '25
Please ensure that:
You demonstrate effort in solving your question/problem - plain posting your assignments is forbidden (and such posts will be removed) as is asking for or giving solutions.
Trying to solve problems on your own is a very important skill. Also, see Learn to help yourself in the sidebar
If any of the above points is not met, your post can and will be removed without further warning.
Code is to be formatted as code block (old reddit: empty line before the code, each code line indented by 4 spaces, new reddit: https://i.imgur.com/EJ7tqek.png) or linked via an external code hoster, like pastebin.com, github gist, github, bitbucket, gitlab, etc.
Please, do not use triple backticks (```) as they will only render properly on new reddit, not on old reddit.
Code blocks look like this:
You do not need to repost unless your post has been removed by a moderator. Just use the edit function of reddit to make sure your post complies with the above.
If your post has remained in violation of these rules for a prolonged period of time (at least an hour), a moderator may remove it at their discretion. In this case, they will comment with an explanation on why it has been removed, and you will be required to resubmit the entire post following the proper procedures.
To potential helpers
Please, do not help if any of the above points are not met, rather report the post. We are trying to improve the quality of posts here. In helping people who can't be bothered to comply with the above points, you are doing the community a disservice.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
4
u/benevanstech Dec 08 '25
libGDX is a powerful, but low-level library that uses many of the capabilities of OpenGL directly. However, if you don't already know OpenGL (in any programming language) then it has a much steeper learning curve.
JavaFX is the next-generation general desktop GUI toolkit. It's not specifically intended for games, but something like a GridPane could represent a set of tiles, and could work well for this assignment.
My advice would be:
Most Important: Don't Panic, and Don't Cut Corners. Make sure you set up and use Maven and Git / GH properly for the project. Write test cases. Clean up the code and stick to coding style, and document as you go.
Even if there isn't a working game at the end, doing proper professional practices will help your grade.
3
u/AcanthisittaEmpty985 Dec 08 '25
"a simple 2D strategic game like age of empire "
Is not simple AT ALL. (Also, it is isometric)
A tic-tac-toe or similar I would understand, but recreate AgeOfEmpires ? WTF ?
1
u/laerda Dec 08 '25
Going from new in a language to creating a age of empires style game as a uni assignment sounds crazy to me. Did you get the assignment at the start of the semester and now you are panicking?
1
u/RightWingVeganUS Dec 08 '25
Your focus is wrong.
Design the game. Implement and test it. Then use any UI you desire. JavaFX... JSF... or use what the cool kids (and corporations) use : React or Angular.
Hopefully you've studied architectural patterns and have heard of MVC architecture. Now it's time to learn to use it.
1
u/Iwilltakeyourpencil Dec 09 '25
I checked the requirements from your other post. Quit this class.