Skip to content

bkbooth/BlockDrop

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

BlockDrop

Demo here: blockdrop.benbooth.dev

BlockDrop is a shameless Tetris® clone using pure JavaScript, HTML and CSS.

I started writing it while teaching myself how to use JavaScript as a proper language and wean myself off jQuery. I'm also using it as a testing platform for various JavaScript, HTML5 and CSS3 features. I've tested in Chrome, Firefox, IE 9/10 and Chrome for Android so it should work on most modern platforms.

Controls

  • a h or swipe ← moves the piece left
  • d l or swipe → moves the piece right
  • w k swipe ↑, or single tap rotates the piece 90° clock-wise
  • s j or swipe ↓ soft drops the piece (drop line by line)
  • spacebar or enter hard drops the piece (drop all the way to the bottom)

About

A shameless Tetris clone using HTML5/CSS3/JavaScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published