0.1.2 • Published 3 years ago

@mitchallen/three-maze-generator v0.1.2

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

@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/maze-generator@0.1.25/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/three-maze-generator@0.1.2/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:


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