Giter Site home page Giter Site logo

dungeon's Introduction

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!

dungeon's People

Contributors

maaslalaniii avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.