Giter Site home page Giter Site logo

amnonskladman / dungeoninterloper Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 198 KB

This is a classic, text-based dungeon crawler, similar to the retro RPGs from the past. It's mostly a way for me to learn Python and get better at it, but also a fun game, too.

Python 100.00%
python dungeon-crawler dungeon-crawler-game game text-based-game

dungeoninterloper's Introduction

Dungeon Interloper hero banner

DungeonInterloper

This is a classic, text-based dungeon crawler, similar to the retro RPGs from the past. It's mostly a way for me to learn Python and get better at it, but also a fun game, too.

Story

You awake in a dungeon, no memory of how you got there. The last thing you do remember, though, was that you were on a flight going somewhere. Now, you're trying to piece everything together and make your way back home to your loved ones.

Mechanics

Random Number Generator

There are RNGs being used to determine outcomes, such as die rolls. These will ensure that the game will usually play out differently every time.

If Statements

These are to determine logic in the game and make the appropriate decisions and advancements. These are also in place to hopefully prevent any bugs or crashes.

ANSI Escape Codes

  • Black: \u001b[30m
  • Red: \u001b[31m
  • Green: \u001b[32m
  • Yellow: \u001b[33m
  • Blue: \u001b[34m
  • Magenta: \u001b[35m
  • Cyan: \u001b[36m
  • White: \u001b[37m
  • Reset: \u001b[0m

Future Goals

  • Make it modular
    • It will read "default settings" from a file
    • You can update the file and replace things as you please, e.g. locations, names, gear, etc.
    • This can potentially work as a system to allow people to add their own "mods"
  • Add a class system, with 2-3 skills and 1 ability for each
  • Become a dungeon-crawler building platform rather than remain one single game

How To Play

It's a classic-style, text-based dungeon crawler game. Just read the prompts and answer the questions as they come up. Please make sure to type the answers as accurately as possible. Sometimes, possible ones are offered, such as "y" or "n". Other times, you have to use your intuition and try different things. This game won't always hold your hand as you play it.

How To Install

  • Install Python 3 for Windows or MacOS
  • Open your favourite terminal
  • cd into a folder
  • git clone https://github.com/AmnonSkladman/DungeonInterloper.git
  • cd DungeonInterloper
  • python index.py
  • Enjoy!

Note: You may need to resize your window to accomodate the banners and other similar content based on your font size and screen resolution. I currently am not sure how to auto-resize content in Python. I am looking for a solution.

Credits

Source code

https://github.com/AmnonSkladman/DungeonInterloper

Banner

Unknown? Still trying to find out the original artist

Converting images to ASCII + ANSI

https://manytools.org/hacker-tools/convert-images-to-ascii-art/

dungeoninterloper's People

Contributors

amnonskladman avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

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