Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 839 Bytes

README.md

File metadata and controls

15 lines (10 loc) · 839 Bytes

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)