0.5.0 • Published 6 years ago

vue-maze v0.5.0

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

Vue-maze

An itty-bitty maze game made as Vue.js component

PLAY DEMO

maze-vue

  • Fit to the component size automatically

maze-vue-resize

  • Mousemove/Touchmove/ArrowKey to move the player

maze-vue2

  • Choose difficulty

maze-vue-difficulty

  • Choose maze generating strategy

maze-vue-strategy

  • Use your own avator/goal image

maze-vue-image

Install

$ npm install maze vue-maze --save
import Vue from 'vue'
import Maze from 'vue-maze'

let v = new Vue({
  el: '#app',
  template: `
    <app>
        <maze></maze>
    </app>`,
  components: {
    Maze
  }
})

Props

PropsTypeDescriptionDefault
difficultystringdifficulty(easy|normal|hard)normal
strategystringmaze generating strategy(dig|cluster)cluster
image-pathstringthe src path to avator image(a data url of default image)
goal-image-pathstringthe src path to goal image(a data url of default image)

Events

EventPayloadDescription
initnonethe maze is initialized
startnonethe player starts to move
finishnonethe player has arrived at the goal
0.5.0

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.3.0

6 years ago

0.2.8

6 years ago

0.2.7

7 years ago

0.2.6

7 years ago

0.2.5

7 years ago

0.2.4

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago