Simple zero dependancy Tetris game made in TypeScript/JavaScript using canvas 2d context.
git clone https://github.com/asplunds/tetris.git
cd tetris
npm i
npm run dev
Vite JS will take care of hot module replacement, start hacking and see your changes live in http://localhost:3000!
Inside the directory
npm run build --base=/your-base-path
Fork with credit!
- Fon't work on touch devices
- Tested on Firefox, Chrome, Edge and Safari
- Will not work on IE11
Make a fork and submit a PR. From there changes will be reviewed.
Thanks to the Tetris fandom wiki for prodiving excellent articles on how Tetris works.