Text Maze Render
Rendering functions for mazes created with the text-maze package. Rendering is via the HTML Canvas API.
See it in use: https://littlesystem.com/maze
Install
npm install --save text-maze-render
Usage
Render a text maze with either the blocky
, bordered
or walled
rendering function.
var tm = ;var tmr = ; var maze = ; tmr;
Put a canvas tag in your HTML with an id
of text-maze
.
Bundle your code with something like browserify.
browserify code.js -o bundle.js
Load the bundle in your HTML.