minghuang15 / tetris

Html5 tetris game, supports two players. 支持本地双人对战的html5俄罗斯方块游戏.

Home Page:http://jarontai.github.io/tetris

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

An old-fashioned html5 game, build with html5 canvas, jQuery and Bootstrap (includes vs mode).
使用HTML5 Canvas, jQuery以及Bootstrap编写,简单而又老土的俄罗斯方块游戏(支持双人).

Click this link to play the game.
点击这个链接去体验

Build - use yeoman (grunt, bower)

*Note: If you use linux/mac, please make sure git is installed. If you use windows, please make sure git for windows is installed, so you can run build commands in git bash.

To build, install nodejs first, then run these commands:

$ sudo npm install -g yo bower grunt-cli
$ git clone https://github.com/jarontai/tetris.git
$ cd tetris
$ bower install
$ sudo npm install
$ grunt build

To preview, run these commands:

$ grunt serve

Screenshots (截图)

menu

one player

two players


构建 - 使用yeoman (grunt, bower)

注意:linux/mac用户请先确认git已经安装好;windows用户请安装git for windows,构建命令请在git bash下面运行。

先安装Nodejs与git,然后在命令行中运行以下指令:

$ sudo npm install -g yo bower grunt-cli
$ git clone https://github.com/jarontai/tetris.git
$ cd tetris
$ bower install
$ sudo npm install
$ grunt build

在浏览器中预览(推荐使用Chrome)

$ grunt serve

License

MIT license.

Author

Jaron Tai - jaroncn#gmail.com (replace # with @)

About

Html5 tetris game, supports two players. 支持本地双人对战的html5俄罗斯方块游戏.

http://jarontai.github.io/tetris


Languages

Language:JavaScript 92.3%Language:CSS 7.7%