Skip to content

meganetaaan/vue-maze

Repository files navigation

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-resize

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

Props Type Description Default
difficulty string difficulty(easy/normal/hard) normal