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.
- ◀
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
orenter
hard drops the piece (drop all the way to the bottom)