/Tetris

A Tetris clone in JavaScript (p5.js). Shamelessly and impudently ripped off of https://github.com/NathanHolyland/ChasCompetition.

Primary LanguageTypeScript

Tetris

This project is a translation and eventual spin-off of the colleauge NathanHolyland's https://github.com/NathanHolyland/ChasCompetition.

Playing

You can play the current release version of the game at https://spooghetti420.github.io/tetris/. If you want to run the game locally, see below.

Building from source

You just need to have the TypeScript compiler install (npm install -g typescript); having cloned the repository, navigate to its root directory and run npx tsc. This will build the source contents into a folder called dist; just run a local server to run the game. You can use extensions in VSCode such as Live Server, which will accomplish this task for you. Then, just navigate to index.html and hit 'Go Live' from the VSCode editor, and the game will start.