Git Product home page Git Product logo

dungeon's Introduction

dungeon

A dungeon game where a player must traverse through the maze, designed using Kruskal's algorithm, to reach the exit in order to win. The obstacles in your way? Monsters and Thieves of course!

About

  • You are in a dungeon of caves (having 1, 3 or 4 exits) and tunnels (having 2 exits).
  • You can find arrows and treasures (rubies, diamonds, sapphires) scattered randomly in the dungeon.
  • The player starts in a cave and to win, must reach the end cave.
  • If you see a faint green mist at your location, an Otyugh is 2 caves away from you.
  • If you see a dense green mist at your location, an Otyugh is 1 cave away from you.
  • To kill Otyughs, you can shoot crooked arrows to a distance of 5 caves (Tunnels don't count as distance travelled).
  • You will also find Thieves at random locations that will rob you of all the treasures you have collected.

Controls

  • Move: Use arrow keys or mouse clicks on valid locations.
  • Shoot: Hold 'z' key, an arrow key to indicate direction of shot, and a number key (1-5) and simultaneously release all the keys.
  • Pickup items: Press 'p' key.
  • 'New Game' option in the Menu will start a game with same settings but game objects and their respective positions randomized.
  • 'Restart Game' option in the Menu will start a game with same settings and same positions for game objects.
  • 'Change Settings' option in the Menu will allow user to set new game settings, such as number of rows & columns in the dungeon, dunegon node interconnectivity etc.

How to play?

  • Run this command on your Terminal: git clone https://github.com/SiddAjriY2Jaccount/dungeon
  • From the root directory, run the command: java -jar dungeon.jar

Concepts used

  • Kruskal's algorithm: For maze construction.
  • BFS (Breadth First Search): To check and ensure that the randomly chosen start and end nodes for a game are atleast 5-hop distance away from each other.
  • MVC (Model-View-Controller): Design pattern followed to structure code modules.

Contributors

Siddhanth Jayaraj Ajri

Screenshots

Screenshot-1 Screenshot-2 Screenshot-3 Screenshot-4

Bibliography

Few links that were particularly helpful during the development of this project:

dungeon's People

Contributors

siddajriy2jaccount avatar

Watchers

 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.