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. Learn how to create new tilesets for donjon-painter `here`_.

.. _donjon's Random Dungeon Generator: https://donjon.bin.sh/fantasy/dungeon/
.. _here: https://github.com/Blackflighter/donjon-painter/blob/master/CONTRIBUTING.rst

-------------
Prerequisites
-------------
- Python:
- >= 3.5
- Pillow

Installation
============

-----------
Windows EXE
-----------
Windows users have the option of downloading an EXE version of the script, which can be found `over here`_. If you wish to run the EXE in the terminal often, you can edit your `PATH`_ environment variable so you don't need to navigate to the program first.

.. _over here: https://github.com/Blackflighter/donjon-painter/releases/
.. _PATH: https://www.howtogeek.com/118594/how-to-edit-your-system-path-for-easy-command-line-access/

------------------------
AUR Package (Arch Linux)
------------------------
If you're using Arch Linux, a PKGBUILD is available `over here`_.

.. _over here: https://aur.archlinux.org/packages/donjon-painter/

----------------------
RPM File (RHEL/Fedora)
----------------------
You can download RPM files `over here`_.

.. _over here: https://github.com/Blackflighter/donjon-painter/releases/

---------
Using pip
---------
donjon-painter is `available on PyPI`_. Get it using this command:

::

pip install --user --upgrade donjon-painter

.. _available on PyPI: https://pypi.org/project/donjon-painter/

--------
setup.py
--------
All that needs to be done here is to `clone this repository`_. Having done so, extract the files, and navigate to the location of said folder. Once you're done with that, run this command:

::

python3 setup.py install

.. _clone this repository: https://help.github.com/articles/cloning-a-repository/

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:

.. image:: https://raw.githubusercontent.com/Blackflighter/donjon-painter/master/res/donjon.png
.. _donjon's Random Dungeon Generator: https://donjon.bin.sh/fantasy/dungeon/

------------------
2. Run the command
------------------
Having done this, run donjon-painter. By default, if you don't specify anything, it will default to interactive mode. This brings up a menu of options in the terminal, which you can then input.

::

donjon-painter

If you're using the EXE file, all you need to do is open it up, and this will bring you to interactive mode.

A more advanced usage entails specifying both the command and the map file of your choice:

::

donjon-painter [OPTIONS] MAPFILE

------------------------------------
3. [Optional] Using interactive mode
------------------------------------
Creating a map in interactive mode is a fairly simple process. You'll be given a set of options to choose from, marked numerically. All you need to do is input said number, and follow the instructions provided.

At minimum, you must select your TSV file of choice, along with the theme you would like to use. Other options can be toggled/set if you'd like some further customisation.

.. image:: https://raw.githubusercontent.com/Blackflighter/donjon-painter/master/res/interactive.png

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.3.tar.gz (4.1 MB view details)

Uploaded Source

Built Distribution

donjon_painter-0.9.3-py3-none-any.whl (4.2 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: donjon-painter-0.9.3.tar.gz
  • Upload date:
  • Size: 4.1 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.3.tar.gz
Algorithm Hash digest
SHA256 0ce7bb6e9ef47c799e74b1d9a00287b1cc7b13c9028b241a3a7ffbe143e04235
MD5 c07cc26a241474d5bcc888c52bf23857
BLAKE2b-256 127ad0f78ae9c545312b5d3666333ba6b9f865f538503f87fb7946fc4e2dd7a0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: donjon_painter-0.9.3-py3-none-any.whl
  • Upload date:
  • Size: 4.2 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 55f3bbf3c532002e8a43e6f8d9a81cb165a74e92c5cff1b9053688e5c019f5a9
MD5 ea81ff129cc7e75acc40181a9aa1f772
BLAKE2b-256 9b08a63cad78e0aee7d0d80e97d5f26846287360c504ffebe5cc0c93e5056789

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