Tetris is a tile-matching puzzle game. The project is built using WebGL with TypeScript and Webpack.
yarn # Install all the dependencies, only run in the first time
yarn build # Convert TypeScript to JavaScript and bundle them to one file
yarn # Install dependencies, only run in the first time
yarn watch # Watch the file changes and compile
Press Arrow Up
for rotating tile shape
Press Arrow Left
or Arrow Right
to move tile horizontally
Press Arrow Down
to accelarate tile downward
Press Space
to drop tile immediately
Press r
to restart
Press q
to quit