0.5.0 • Published 8 years ago
vue-maze v0.5.0
Vue-maze
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

- Choose maze generating strategy

- Use your own avator/goal image

Install
$ 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
| Props | Type | Description | Default |
|---|---|---|---|
| difficulty | string | difficulty(easy|normal|hard) | normal |
| strategy | string | maze generating strategy(dig|cluster) | cluster |
| image-path | string | the src path to avator image | (a data url of default image) |
| goal-image-path | string | the src path to goal image | (a data url of default image) |
Events
| Event | Payload | Description |
|---|---|---|
| init | none | the maze is initialized |
| start | none | the player starts to move |
| finish | none | the player has arrived at the goal |
0.5.0
8 years ago
0.4.1
8 years ago
0.4.0
8 years ago
0.3.0
8 years ago
0.2.8
8 years ago
0.2.7
8 years ago
0.2.6
8 years ago
0.2.5
8 years ago
0.2.4
8 years ago
0.2.3
8 years ago
0.2.2
8 years ago
0.2.1
8 years ago
0.2.0
8 years ago
0.1.5
8 years ago
0.1.4
8 years ago
0.1.3
8 years ago
0.1.2
8 years ago
0.1.1
8 years ago
0.1.0
8 years ago