A dungeon crawler engine written in Python.
- Python3
- Build your game world entirely in JSON
- Navigate through the dungeon
- Collect loot
- Fight monsters
Run:
python3 game.py games/dan.json
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
- 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
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.
> _