Skip to content

ruscoe/dans-dungeon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dans_dungeon_banner

Dan's Dungeon

A dungeon crawler engine written in Python.

dans dungeon

Requirements

  • Python3

Features

  • Build your game world entirely in JSON
  • Navigate through the dungeon
  • Collect loot
  • Fight monsters

Playing

Run:

python3 game.py games/dan.json

Creating your own dungeon

First, copy the default JSON file to a file of your choice. Example:

cp games/dan.json games/mygame.json

Open the JSON file and modify the details, loot, rooms, and monsters.

Run your game:

python3 game.py games/mygame.json

Limitations

  • All rooms must have a unique name
  • Player always starts in the first room defined in the JSON "rooms" array
  • Player may only carry one weapon and one armor item at a time

Example output

Game loaded!

Name        : Dan's Dungeon
Description : An example game where you explore a dungeon and fight monsters.
Version     : 1.0.0

Type 'help' for commands.

You are in: Entrance Hall

> look

You are in a dimly lit hall.

Exits:
  North: Dank Hallway

You see a Wooden Box

You see a Iron Box

You see a Skeleton (HP: 5, DMG: 2)

> open iron box

You open the Iron Box and find loot!

You found Wooden Shield

Replace your Holey Shield (DEF: 1) with Wooden Shield (DEF: 2) ?

Y/N > y

> fight skeleton

You engage the Skeleton in battle!

You attack the Skeleton for 1 damage.

The Skeleton attacks you for 2 damage.

Your armor absorbs 2 damage.

> _

License

MIT

About

A dungeon crawler engine written in Python.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages