Git Product home page Git Product logo

vue-hextris's Introduction

Vue Hextris

中文说明

An addictive puzzle game, written with Vue.js.

The design of this game come from here. It's interesting, I was attracted deeply when I first play this game. So I remake it with vue.js.

So far, I haven't copied enough, There is a little difference between origin version and this version, but the core is same.

Where to play

  1. online

You can play at here.

  1. local

Also play at local with serval steps.

clone repository:

git clone https://github.com/pengfeiw/vue-hextris.git

install package:

npm install

run serve:

npm run serve

open browser http://localhost:8080.

How to Control

  1. pc

You can control it with left、right and down arrrow keys or mouse click.

keys:

  • left arrow: rotate left
  • right arrow: rotate right
  • down arrow: speed down

mouse:

  • click on left part: rotate left
  • click on right part: rotate right
  1. touchscreen device

We Also support touch event, so you can play on you mobile.

  • touch on left part: rotate left
  • touch on right part: rotate right

vue-hextris's People

Contributors

pengfeiw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

vue-hextris's Issues

block 消除时机有点问题

目前 block 消除检测是画布每次重绘时,更好的游戏机制应该是当一组 activeBlock 都变成 settledBlock 时,才进行消除检测。

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.