Giter Club home page Giter Club logo

vue-maze's Introduction

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

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

vue-maze's People

Contributors

meganetaaan avatar dependabot[bot] avatar

Stargazers

Yingzi Yu avatar YongHun avatar 深红 avatar Zein Miftah avatar L avatar Johnson.zhao avatar  avatar Alireza Bagherzadeh Chaharjouee avatar Jonathan.C avatar slingjuns avatar FGuillen avatar LJ avatar Ruan Yi avatar j0n3 avatar Jouke Waleson avatar Chris Means avatar Richard McKenna avatar Thomas Erhel avatar Hardway avatar  avatar copter.js avatar Daisuke Sato avatar  avatar Andres Haehnel avatar Amit Kumar avatar Craig Loewen avatar Shota Hirama avatar Tha_UI_Guy avatar Agboola Sherriff avatar ToFuWong avatar Abdul Muhit avatar Jason Dittmer avatar gabriel avatar Nick Steele avatar Joseph Anglada avatar alanzhchou avatar Jackie Wu avatar Jeremy Pruitt avatar hiromasa avatar 401 avatar Xavier avatar Yixian Hao avatar seabreeze avatar Burak Karakan avatar Tran Quang Tien avatar Özgür Can Altınok avatar Tiago Dakuzaku avatar Vladimir Kashutin avatar  avatar longlong avatar Stefan Bauer avatar jerry.wu avatar Pablo Martín Pérez avatar  avatar DaoBin Xu avatar Kevin Lee Drum avatar Robson Tenório avatar Aitor Pérez Rodal avatar Daniel Blendea avatar ik5 avatar SwhGo_oN avatar Sergej Sintschilin avatar Kamil avatar Andrew Burdyug avatar D3I avatar

Watchers

James Cloos avatar  avatar Xavier avatar  avatar

vue-maze's Issues

Add document

  • gif anime
  • feature list
  • data/method/event list

Props

  • difficulty: [EASY|NORMAL|HARD]
  • avator: Image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.