@mitchallen/three-maze-generator
v0.1.2
Published
ThreeJS Maze Generator --
Downloads
3
Readme
@mitchallen/three-maze-generator
ThreeJS Maze Generator
Usage
Include maze generator dependency
<html>
<head>
<title>threejs map generator</title>
<link rel="stylesheet" href="./css/app.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r123/three.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@mitchallen/[email protected]/dist/maze-generator.min.js"></script>
</head>
<body>
<script type="module" src="./app.js"></script>
</body>
</html>
Get from npm via jsdelivr
For example, from within your app.js file:
import {
MAZEGEN,
} from 'https://cdn.jsdelivr.net/npm/@mitchallen/[email protected]/dist/three-maze-generator.modern.js'
Example code
See the repo examples folder.
To run the example code
To run the example code go to the root of this project and run:
npm run web-server
Then browse to:
- http://localhost:8000/examples/demo-maze/
Publishing
To publish your version of the package you must first setup an account and project in NPM.
This will boost the version number, push and publish:
git add .
git commit -m "updated code"
npm run pub:patch
As an alternative:
git add .
git commit -m "updated code"
npm version patch -m "Upgrade to %s for reasons"
References
- https://www.jsdelivr.com/