A dungeon generator written in Python.

Corey Prophitt 59b4ceba61 Fixed screenshots 3 weeks ago
assets 5e32a0dd00 Added example screenshots. 7 years ago
exports 406d325df2 Added w/h to postscript file 7 years ago
src e787ad5c24 Fixed encoding modelines. 6 years ago
.gitignore c94e0593bd Cleaned up some crufty editor files. Added vim modelines and tested python compatibility. Added a setup.py file as well. 6 years ago
dgen.py e787ad5c24 Fixed encoding modelines. 6 years ago
license.txt a6c35f02bf Added license.txt 7 years ago
readme.md 59b4ceba61 Fixed screenshots 3 weeks ago
setup.py e787ad5c24 Fixed encoding modelines. 6 years ago

readme.md

Dgen

Dgen is a prototype of a pseudorandom dungeon generator. The algorithm used within the generator is min-conflicts with some procedural tweaks. The prototype comes with a simple GUI for creating and saving maps in postscript format.

Example images and screenshots can be found in the assets folder. There are examples of ASCII based maps and graphical based maps using Tkinter.

Screenshots

alt text

alt text

Usage

$ python dgen.py

or

$ chmod +x dgen.py && ./dgen.py

Tested on Python 2.6, and Python 2.7. Python 3 support was attempted but not tested. Use with caution! Tested on Windows 7, 8 and Linux. Pypy was also tested and appears to work as intended.

An OSX application can be created if you have py2app installed. You can install via:

$ easy_install py2app

To build an app run,

$ python setup.py py2app

Dependencies

python version 2.6 or greater, may work on Python 3; I'm hopeful.

tkinter already included in most Python installations

idlelib already included in most Python installations

License

    Copyright (C) 2012, Corey Prophitt.

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.