Skip to main content

Graphical map translator for donjon's Random Dungeon Generator TSV files.

Project description

donjon-painter - Dungeon Map Maker

donjon-painter is a companion script to donjon’s Random Dungeon Generator. By selecting a TSV file along with a set of tile assets, you can easily create large, beautiful dungeon maps.

Prerequisites

  • Python:
    • >= 3.4

    • Pillow

Installation

Windows EXE

Windows users have the option of downloading an EXE version of the script, which can be found over here. You’ll need to run the EXE from the terminal - this can be done more easily by editing your PATH environment variable.

Using pip

donjon-painter is available on PyPI. Until I get to creating packages for different Linux distributions, this is the ideal way of using it on them. Get it using this command:

pip install --user --upgrade donjon-painter

setup.py

This requires you to download the TAR.GZ version of donjon-painter, found here. Having done so, extract the files, and navigate to the location of said folder. Having done this, run this command:

python3 setup.py install

Usage

1. Download your TSV file

First of all, begin by heading to donjon’s Random Dungeon Generator to generate the dungeon of your liking. Having done that, you should select the option to download a TSV map of the generated file, as depicted below:

/res/donjon.png

2. Run the command

Having done this, run donjon-painter. The most basic command for making the script run is to specify both the command and the map file of your choice:

donjon-painter [OPTIONS] MAPFILE

If you’re using the EXE file, you may have to specify the location of it beforehand to make things work.

Options

There’s a number of things you can do to change the behaviour of this script, as detailed below.

-h, --help          Display the commands below
-t, --tileset       Specify a theme folder outside of the inbuilt ones (consult CONTRIBUTING.rst for further information)
-m, --measure       Measure the time it takes to create your map
-o, --output        Choose a different location/name to save your map to
-p, --pixels        Choose a different size to make your map tiles in pixels (default 70)
-r, --randomise     Shuffle the map floor patterns for some variation if required
-s, --savetiles     Used in conjunction with the --tileset option, create a complete tileset theme (consult CONTRIBUTING.rst)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

donjon-painter-0.9.tar.gz (3.9 MB view details)

Uploaded Source

Built Distribution

donjon_painter-0.9-py3-none-any.whl (4.0 MB view details)

Uploaded Python 3

File details

Details for the file donjon-painter-0.9.tar.gz.

File metadata

  • Download URL: donjon-painter-0.9.tar.gz
  • Upload date:
  • Size: 3.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for donjon-painter-0.9.tar.gz
Algorithm Hash digest
SHA256 96ffbc5ade0582f2401ced619e271133362d7f51f6444882c926098c7af939fb
MD5 b848ed4aafa1f52a6100fc2345bf8418
BLAKE2b-256 4802d9e96c0bdc939ce0da4b6a9449ab7e00ed22c14830a0bc2c6d81918e6623

See more details on using hashes here.

File details

Details for the file donjon_painter-0.9-py3-none-any.whl.

File metadata

  • Download URL: donjon_painter-0.9-py3-none-any.whl
  • Upload date:
  • Size: 4.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for donjon_painter-0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 74ccbb5056e3bec353146c43060ccfec4f5bb85defa997e1534982d4caaa1afb
MD5 6f3e4916f48778aa584ff93b31057947
BLAKE2b-256 c6d4bbf89afd3ebb9aefeaacbd038d01400a6fbd59ab24f8bc5f9a8ce8e76794

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page