Skip to content

asplunds/tetris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tetris

Simple zero dependancy Tetris game made in TypeScript/JavaScript using canvas 2d context.

Demo

How to fork

  1. git clone https://github.com/asplunds/tetris.git
  2. cd tetris
  3. npm i
  4. npm run dev

Vite JS will take care of hot module replacement, start hacking and see your changes live in http://localhost:3000!

How to build

Inside the directory

  1. npm run build --base=/your-base-path

Fork with credit!

Browser support

  • Fon't work on touch devices
  • Tested on Firefox, Chrome, Edge and Safari
  • Will not work on IE11

Contributing

Make a fork and submit a PR. From there changes will be reviewed.

Credits

Thanks to the Tetris fandom wiki for prodiving excellent articles on how Tetris works.