Tetris game made on React + NextJS + Typescript as a practice.
❗ It works only on desktop for the moment. ❗
Custom hook that provides the interface to get the current game state and the methods to interact with the game.
File with core tetris logic functions. Some logic was based on https://tetris.fandom.com/
- 15 levels
- Fast and Hard drop
- Tetromino placement preview
- SFX and BGM
- Simplified score system (doesn’t take T-Spins into account, insanely complex and too lazy to implement)