r/javascript • u/michowski • Jul 24 '16
1.92kb Tetris in HTML5 (JavaScript). Any suggestions are welcome.
https://github.com/michowski/tetris-light
99
Upvotes
r/javascript • u/michowski • Jul 24 '16
View all comments
Show parent comment
3
u/michowski Jul 24 '16
I think everything is some kind of excercise, but it was rather a fun project inspired by this Snake. With Tetris it isn't that simple to bind everything to one event though and there are some predefined objects. I wanted to make it as raw as possible, yet with a clean code. That's why I didn't use canvas. Regarding "shaking side borders" - hm, I haven't really encountered this problem, but I am aware that default <pre> tag is different on every browser.