turn-based combat game
Hello everyone,
I am working on a turn-based combat game in text mode in Java.
The game uses the Lanterna library for the user interface (TUI) and a SQL Server database to store the player login information, while MongoDB is used to store game objects (such as skills, items, etc.).
The project is developed on IntelliJ and uses Gradle for dependency management.
The problems I'm facing:
Project Architecture:
I'm not sure how to properly organize the different parts of the project: Model, DAO, Services, and Screens.
I’m looking for advice on how to structure the project cleanly, especially regarding the interactions between the models, services, and the user interface.
Managing Two Databases (SQL Server and MongoDB):
How should I structure the DAO (Data Access Objects) to interact with these two databases?
For the TUI:
If possible, how can I style Lanterna (this is my first time using it)?
What I hope to get:
Advice on code structure and how to manage both databases (SQL Server and MongoDB) within the Java project.
Suggestions to improve the Lanterna interface, both in terms of design and performance.
Any help or resources that could make this project smoother to develop and more professional.
Note:
I am open to any feedback on these important points to lay a solid foundation for the project. Once I am more confident with the architecture and database management, I can start focusing on the game logic and feature implementation. Any help would be greatly appreciated to get this project off the ground.
Here is the project in question
https://github.com/la226247/Projet-A
Thanks in advance to everyone for your help.
Note: I am a beginner and student in java and i am french , so please bear with me if there are any mistakes.
GitHub
GitHub - la226247/Projet-A
Contribute to la226247/Projet-A development by creating an account on GitHub.
1 Reply
⌛ This post has been reserved for your question.
Hey @TOUNISIIENN! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./closeor theClose Postbutton above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping.
Warning: abusing this will result in moderative actions taken against you.