Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/steren/labyrinth
maze generator
https://github.com/steren/labyrinth
Last synced: about 1 month ago
JSON representation
maze generator
- Host: GitHub
- URL: https://github.com/steren/labyrinth
- Owner: steren
- Created: 2014-03-09T21:29:19.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2021-10-16T20:10:26.000Z (about 3 years ago)
- Last Synced: 2024-10-05T11:41:22.953Z (about 2 months ago)
- Language: JavaScript
- Homepage: http://steren.fr/labyrinth
- Size: 167 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[Labyrinth](http://steren.fr/labyrinth)
=========Simple maze generator.
Only support rectangular mazes. Uses a custom algorithmUsage
-----Resize the window to create a new maze with a new size.
Roadmap
------------* Create a SVG+CSS renderer to be resolution independent.
* Add printing (easier using SVG)
* Allow user to draw his path from the start point to the end. Use Touch Events and mouse as input.
* Use Web Workers for maze creation.
* Add a mode to visualize the growing of the algorithm (was done before pretty badly), use a custom color scheme for each frame instead of stopping the algorithm.Easter egg
----------Add [`#colors`](http://steren.fr/labyrinth#colors) to the end of the URL for a visual surprise (be patient, it can take dome time to render).
For developers
--------------### `labyrinth.js` is a maze generator
You pass it parameters to erase the default ones. Most notably: size and starting point.
### `labyrinth-canvas-renderer.js` is a renderer for generated maze
You pass it parameters to render the maze, most notably: square colors and size.
You can specify a custom color scheme with the `colorScheme` parameter.