MakeContributions / markdown-dungeon

This is an example that how to use Markdown creating a dungeon, please give a ⭐
https://markdown-dungeon.netlify.app/
MIT License
324 stars 148 forks source link
contributions-welcome dungeon game gatsby hacktoberfest markdown-dungeon material-ui open-source reactjs

License: MIT Open Source Helpers CodeQL codespell Netlify Status Discord

βš”οΈ Markdown Dungeon βš”οΈ

A dungeon is a place or prison where people are held. Usually, they can be found underground


This is an example repo illustration of a dungeon using Markdown on GitHub. In the dungeon the reader chooses which option to take and jumps into an appropriate page of the room that is based on their choice. It is collaborative because the room is written by many authors.

Start a new game

πŸ“₯ Installation

You need to install yarn.

  1. Clone the repo
git clone https://github.com/MakeContributions/markdown-dungeon.git
  1. Go to the folder
cd markdown-dungeon
  1. Run install dependency
yarn
  1. Create a .env.development file in the project root folder and copy the format of .env.example file.
  2. To start the development server run:
yarn start

Ensure you are not using PowerShell

  1. πŸŽ‰ Open your browser and go to http://localhost:8000/ or http://localhost:8000/___graphql

πŸ‘·β€β™‚οΈ Floor and the room format

A floor is a folder and each floor is a collection of rooms and every room is a Markdown file. The Markdown capability links are used for up/down and to go to another room, like the example below.

Go to Github dungeon

[Go to Github dungeon](https://github.com/)

πŸ‘©β€πŸ’» Contribution Guidelines

1. πŸ“ Make Adequately Sized Changes

Here are some examples of appropriate changes:

2. β›© Dungeon Structure

Structure should be dungeon-name/floor-number/room-number, please see the definitions below for each variable:

1, 2, 3 // Compliance

01, 02, A3 // Non-Compliance
1, 2, 3-AF, 3-01 // Compliance

01A, 02*A3, A3+F // Non-Compliance

Folder or file name only accept all ASCII characters and the dash(-).

If you created a new dungeon please add in Start a new game, add it on images folder, and in the dungeon-info.json, so the reader can go to your dungeon and open it on the website

If you want to get an idea of which option leads to what when contributing, look for decision_tree.png file under any dungeon folder, which contains a graphical view of that dungeon.

3. πŸ”— Use Relative Links

The links in this file must be relative links to continue working if the repository is forked.

4. πŸ“ Line Lengths

Keep all lines 120 characters or less. Otherwise, the raw files will be difficult to read in the browser or on the command line, and the changes will be more difficult to review.

5. πŸͺ“ Blank Lines Between Options

Insert blank lines between the different options so that the options are visually separated.

πŸ“ License

MIT