It's a collaborative project initiated two years ago by myself and Illia Obukhau. It was originally conceived as a simple experiment in which we explored the nuances of Effector for state management. The project, which started in a private repository, is now being exposed and shared publicly.
- The game field is a grid of 12 columns by 21 rows
- There are 7 types of blocks
- The game progresses at a steady speed, with one "tick" per second
- There can only be one falling block at a time
- Players can move the falling block left or right
- Players can rotate the falling block clockwise
- Completed horizontal lines clear, making room for new blocks
- Players earn points for each cleared line
- Players can pause the game and resume at any time
- If a new block cannot enter the field, the game ends
- Players can see a preview of the next block that will enter the field
- As players score more points, the game speed increases, creating a sense of progression
- Keep track of high scores in a record table
- Left Arrow: Move the falling block to the left
- Right Arrow: Move the falling block to the right
- Up Arrow: Rotate the falling block clockwise.
- Down Arrow: Accelerate the descent of the falling block
- Spacebar: Instantly drop the falling block to the lowest possible position