Marcille (2025-08-02)
Dungeon generator with walking mushroom.
Marcille is a dungeon generator. Run without arguments for the help
message below:
./marcille {36<=w<2048} {12<=h<2048} [seed]
Marcille takes two or three arguments:
+ First argument is width, accepted range is between 36 and 2047.
+ Second argument is height, accepted range is between 12 and 2047.
+ Third optional argument is random seed.
Running with a deterministic seed will produce deterministic output,
although this seed does not guarantees the same output across
different systems (it depends on the local implementation of
`rand()`).
If a seed is not specified, Marcille will try to produce a random seed
using ASLR. On systems where ASLR doesn't happen (e.g. Cygwin), it's
recommended to run with `date +"%s"` to use current time as seed.
Marcille will try to produce a dungeon of the specified width and
height. What you actually get depends on your terminal:
+ On terminals that has Sixel support enabled (e.g. `mintty`,
`xterm -ti 340`), you will see an image of a walking mushroom.
+ On terminals that don't recognize Sixel at all (e.g. `PuTTY`,
windows console), you will see an ASCII art dungeon. Curiously, a
MingW compiled binary running inside `mintty` will produce ASCII art
dungeon when running by itself, and generate Sixel image when its
output is piped through Cygwin's `cat`.
+ On terminals that recognize Sixel but has it disabled (e.g.
`gnome-terminal`, `xterm` with default options), you might get just
blank lines.
To force dungeon output regardless of terminal, you can replace all
control codes with some character using `sed`, for example:
./marcille 80 25 `date +"%s"` | sed -e 's/\S/#/g' > output.txt
If you have ImageMagick, you can use that to convert Sixel image into
some other image format, for example PNG:
./marcille 80 25 `date +"%s"` | convert sixel:- output.png
Template is based on Marcille Donato from Dungeon Meshi.
--
omoikane@uguu.org - https://uguu.org/