Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/asplunds/tetris

Simple Tetris game made in TypeScript/JavaScript
https://github.com/asplunds/tetris

Last synced: 4 days ago
JSON representation

Simple Tetris game made in TypeScript/JavaScript

Awesome Lists containing this project

README

        

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

[Demo](https://asplunds.github.io/tetris/dist/)

## How to fork

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

[Vite JS](https://vitejs.dev) will take care of hot module replacement, start hacking and see your changes live in [http://localhost:3000](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](https://tetris.fandom.com/wiki/Tetris_Wiki) for prodiving excellent articles on how Tetris works.