+
Skip to content

aishamidori/tetris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

A Tetris implementation using Javascript.
To run open the file 'tetris.html' in any web browser. Within the same folder containing the file 'tetris.html' you must also have the bootstrap folder as downloaded here. JQuery is automatically accessed from Google APIs.
Sample can also be played here.

Actions can be performed by pressing keyboard keys.

* Move Left -- Left Arrow
* Move Right -- Right Arrow
* Soft Drop -- Down Arrow
* Hard Drop -- Spacebar
* CW Rotate -- Up Arrow, "X"
* CCW Rotate -- Ctrl, "Z"
* Pause -- Esc, F1, "P"	

Credits

Rules and Guidlines based on Official Tetris Guidlines.
Layout using HTML5 canvas.
Buttons with Bootstrap.
Icons thanks to Glyphicons.

Scoring

Score increments for each row dropped. Double points for hard drops.
Score for a line clear = level * 50 * (lines * (lines + 1)
level = (lines / 10) + 1

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载