r/javascript • • Jul 24 '16

1.92kb Tetris in HTML5 (JavaScript). Any suggestions are welcome.

https://github.com/michowski/tetris-light
96 Upvotes

38 comments sorted by

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.