I rewrote the Tetris clone I originally wrote in 2007! The old one was written in Java and for a good long while now hasn’t run in the web browser. So I rewrote the code in TypeScript and refactored it quite a bit (though not as much as I probably should’ve). It’s neat seeing the best work I did ten years ago and being able to improve upon it a lot. I’m excited to see how much better I can make things in 2027.
See the code and write up here.
Play the game here. A and S to rotate, SPACE to pause, LEFT and RIGHT and DOWN arrows to move … left and right and down, and UP to moveĀ allĀ the way down.
Post a Comment