This is a simple Tetris game written in TS/Solidjs.
Just to practise and fun.
This is still work in progress, until I will have the time, ideas and strength to add new features:)
Pretty standard workflow:
* git clone repo
* cd into/folder
* npm install
* npm run dev
Pretty standard tetris by default:
- Arrows left/down/right to move,
- Arrow up to rotate
- p to pause
But you can rearrange according to your preferences.
Whenever the game window loses focus, the game is automatically paused.
If you close the window or reload the page during in-game, the save would be created. When you later get back to the game and the save would be discovered, you'll see modal window with question whether you want to load it.
Save will be only created if another is not present already or if the game is in progress (not in game over state).
Now we have something completely new - game modes!
- Classic - you play as you did since begining - every 5000pts, game speeds up;
- Endless - you can play without any speed ups, with the constant drop speed, (almost) endless;
- Arcade - while playing in endless mode, there will be some perks drawn on each full lines you've cleared.
SolidTetrisArcade.mp4
You can see the game in action deployed on github pages. Enjoy!