An itty-bitty maze game made as Vue.js component
- Fit to the component size automatically
- Mousemove/Touchmove/ArrowKey to move the player
- Choose difficulty
$ npm install maze vue-maze --saveimport Vue from 'vue'
import Maze from 'vue-maze'
let v = new Vue({
el: '#app',
template: `
<app>
<maze></maze>
</app>`,
components: {
Maze
}
})| Props | Type | Description | Default |
|---|---|---|---|
| difficulty | string | difficulty(easy/normal/hard) | normal |