<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/maze-generator@0.1.25/dist/maze-generator.min.js"></script>
</head>
<body>
<script type="module" src="./app.js"></script>
</body>
</html>
For example, from within your app.js file:
import {
MAZEGEN,
} from 'https://cdn.jsdelivr.net/npm/@mitchallen/three-maze-generator@0.1.2/dist/three-maze-generator.modern.js'
See the repo examples folder.
To run the example code go to the root of this project and run:
npm run web-server
Then browse to:
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"