A text-based adventure game, coded entirely in Java.
You are trapped in a dungeon and there is no way out. Enemies are spawining one after the other. It is your goal is to kill as many as you can, without dying yourself.
Throughout the game you are given a certain number of options. Type the corresponding number as your choice to select that option. The following is a brief description of what each of the options accomplishes.
1. Attack: You deal a random amount of damage to the enemy, as it also deals damage to you.
2. Use Potion: Drink a potion that restores your health by a certain amount.
3. Run Away: Flee from the enemy and spawn a new enemy.
4. Exit: Quit the game with or without saving your progress.
$ git clone https://github.com/Maaslalaniii/Dungeon.git
$ cd Dungeon
$ javac TheDungeon.java
$ java TheDungeon
The game will start after those commands are run.
For a better playing experience use the BlueJ IDE and run the main method found in TheDungeon class.
- Enemies drop swords, armour, and health potions upon defeat.
- Swords and armour come in different variety.
- Ability to load and save state of the game.
- Gold coins as currency.
- Store to purchase various game items.
Add currency such as gold coins.Add a store to purchase swords and armour.Penalty for running away.- Add more names to the enemy list.
- Give enemies special abilities.
- Give player special power-ups.
- Keep track of highest enemies killed.
Encrypted data.- Implement a graphical user interface.
Contributions that enhance gameplay are always welcome!