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

https://github.com/bobbylight/tetrisjs

Tetris written in Typescript
https://github.com/bobbylight/tetrisjs

Last synced: 11 months ago
JSON representation

Tetris written in Typescript

Awesome Lists containing this project

README

          

# TetrisJS
![Build](https://github.com/bobbylight/TetrisJS/actions/workflows/build.yml/badge.svg)
![CodeQL](https://github.com/bobbylight/TetrisJS/actions/workflows/codeql-analysis.yml/badge.svg)

A Tetris clone in TypeScript (not JS! :) ). This is a straight port
of a Tetris game I wrote in Java AWT as a kid. I ported it to TS and
hope to make it more robust one day.

## Hacking
The game is built with `vite`. To test and build locally:

```
git clone https://github.com/bobbylight/TetrisJS.git
cd TetrisJS
npm install
npm run dev # Start dev server at loclahost:5173, hot deploy changes
npm run build # Production build into dist/
npm run preview # Test the production build at localhost:4173
```