Skip to content

A program from generating 2D mazes, and includes some options for making it look pretty.

License

Notifications You must be signed in to change notification settings

SuperOxigen/mazart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mazart

alt text

This software generates a 2D maze PNG image. There are several options available for creating interesting image patterns.

How to Build

Dependencies

Install Dependencies

  • For Arch Linux
$ sudo pacman -S gcc make libpng
  • For most Debian distributions
$ sudo apt-get install gcc make libpng-dev

Build Project

# From what ever directory you put your code in
git clone git@github.com:SuperOxigen/mazart.git
cd mazart
make

How to Use

Currently, the UI for the program is greatly lacking and is in need of improvement. To see what options are currently available, you can use the --help flag when you run the program. You must include an output file --output.

$ ./bin/mazart.exe --help
$ ./bin/mazart.exe --output my_maze.png

Examples

  • Simple maze

alt text

$ ./bin/mazart.exe --output basic.png
  • Simple maze with solution

alt text

$ ./bin/mazart.exe --draw-path --output basic.sol.png
  • Large maze, small details

alt text

$ ./bin/mazart.exe --maze-height 128 --maze-width 128 \
  --cell-width 2 --wall-width 1 --output dense.png
  • Colorful artwork

alt text

$ ./bin/mazart.exe --maze-height 384 --maze-width 384 \
  --cell-width 1 --wall-width 0 --cell-mode palette --cell-metric path \
  --output colorful.png

Performance

Program run time mostly depends on the maze dimensions that you provide (--maze-width and --maze-height).

Program memory consumption depends on image dimensions; combination of maze dimensions and widths of cells, walls, and border (--cell-width, --wall-width and --border-width).

There are several maximum values that the program allows currently. Run program with --help, and read the description for each flag to get their maximum. If you want, you can modify these maximums in config.c.


License

This project is distributed under the MIT License. Please see LICENSE for more details.

Contributing and Feature Suggestions

Check out the CONTRIBUTING.md doc for information on how to contribute to the project.

If you have suggestions for features that you think others would enjoy, please open an issue on the project's GitHub page.

About

A program from generating 2D mazes, and includes some options for making it look pretty.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published