Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/asplunds/tetris
- Owner: asplunds
- Created: 2021-05-20T16:04:52.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-09-30T11:56:21.000Z (about 3 years ago)
- Last Synced: 2024-08-04T20:02:17.323Z (3 months ago)
- Language: TypeScript
- Size: 29.3 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.