The game started with a character creation, only the name are needed because the base stats is already added in the Player class. You can change them in the constructor.
How to Install?
- Copy this repository to a folder somewhere (anywhere, really):
git clone https://github.com/Quackeyikz/Java_Turn-Based_RPG.git
- Make sure you have Java installed, compile all the java files.
javac Main.java Mob/*.java Items/*.java
- To run the game, type this:
java Main
Using the info()
method to print the player stat.
The enemy is randomized through enemyTrigger()
method.
Each loop drop chance has 45%, and the last 10% is no drop.
There are some "rare" drops, you'd mostly see common and uncommon stuff because of the drop chance.
If you ran out of health, the game will end. But if you decided to stop adventuring, you will ended up winning. This is because the game does not have a clear winning ending, it's a survival game. Now let's see if you're unlucky enough to encounter the final boss.
This poor slime is terrified to the superiority of that is the healing spell.
Here's my personal strategy:
- Take the starter equipments.
- Find a slime or a high orc, kill them to get better equipment.
- If you encounter Dragonewts, Rainbow Dragon, and (???), you better use the (3) Flee option. If fails, keep trying or use the (1) Heal option.
- Keep grinding to get the rare items, that way you will be able to defeat the higher level enemies.
- Don't forget to stop when you're satisfied.