A classic Tetris game implemented using Pixi.js. This project was developed as part of an internship program at Qene Games. The game includes traditional Tetris gameplay mechanics such as rotating and moving tetrominoes, clearing lines, and increasing difficulty levels. The game also includes a scoring system that rewards players for clearing lines and a level system that increases the speed of the tetrominoes as the player progresses.Also added hard drop feature to the game. The game use super rotation System (SRS) so you can do T-spin and other advanced moves.
- Clone the repository:
git clone https://github.com/Qene-Internship/tetris-fitsum.git
- Navigate to the project directory:
cd tetris-fitsum
- Install dependencies:
if you haven't yet installed bun install it
bun install
- run the game
bun run dev
- Use the arrow keys to move and rotate the tetrominoes.
- Arrow left and Arrow right to move the block side to side
- Arrow up to rotate the tetromino
- Arrow dowm to increase the speed to move
- Space to hard drop the tetromino
- P to pause the game
- Z to rotate the tetromino counter clockwise
- X to rotate the tetromino clockwise
- If you are a vim user and hate the arrow keys
- h and l to move the block side to side
- k to rotate the tetromino
- j to increase the speed to move
- Fill a row completely to clear it and earn points.
- The game ends when the tetrominoes stack up to the top of the playing field.
Screen.Recording.2024-08-09.033323.mp4
Showing when it is Game Over
Screen.Recording.2024-08-09.034404.mp4
- Konva.js: For rendering graphics
- Typescript: Game logic
- HTML/CSS: Interface and styling
- bun: For development server and dependency management