r/javascript • u/michowski • Jul 24 '16
1.92kb Tetris in HTML5 (JavaScript). Any suggestions are welcome.
https://github.com/michowski/tetris-light
96
Upvotes
r/javascript • u/michowski • Jul 24 '16
View all comments
Show parent comment
4
u/qweqweasdqweasdqwe Jul 24 '16
I would also rate limit the keypress events, if I hold up arrow or down arrow continuously it creates some interesting UI errors like allowing blocks to continue through after hitting a wall in some instances or turning an L block into a swastika. It also occasionally prevents me from moving left or right after holding up/down.