Hey! Yesterday I have written a Tetris game in Typescript in 5 hours. The entire process I recorded, so you can watch it in a timelaps video :)
Also, below is the source code of the game to analyze or modification.
GitHub (Please star 🌟 repo to make it better visible for others ;p)
Tetris game like written in pure Typescript, less than 30kB.
You can play here: Play Game