Skip to content

🐉 A text-based adventure game coded in Java.

Notifications You must be signed in to change notification settings

maaslalaniii/Dungeon

Repository files navigation

The Dungeon

A text-based adventure game, coded entirely in Java.

Premise:

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.

Gameplay:

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.

Usage:

$ git clone https://github.com/Maaslalaniii/Dungeon.git
$ cd Dungeon
$ javac TheDungeon.java
$ java TheDungeon

The game will start after those commands are run.

List of commands in sequential order.

For a better playing experience use the BlueJ IDE and run the main method found in TheDungeon class.

BlueJ Running the main method.

Features:

  • 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.

Todo:

  • 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.

Contribute:

Contributions that enhance gameplay are always welcome!

About

🐉 A text-based adventure game coded in Java.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages