🤗 Beautiful Tetris created with HTML, CSS, JavaScript. Play it now
- Lock delay: refers to how many seconds a Tetromino waits while on the ground before locking.
- Super rotation system: represents where and how tetrominoes spawn, how they rotate, and what wall kicks they may perform.
- Spawn Orientation and Location
- All tetrominoes spawn horizontally and wholly above the playfield.
- All tetrominoes spawn centrally, three cells from the left wall.
- The J, L and T spawn pointing up.
- The tetrominoes spawn in rows 22 (Z, S, T, L, J) and 23 (I, O).
- Basic rotation
- Wall kicks
When the player attempts to rotate a tetromino, but the position it would normally occupy after basic rotation is obstructed, (either by the wall or floor of the playfield, or by the stack), the game will attempt to "kick" the tetromino into an alternative position nearby.
- Spawn Orientation and Location
- Next queue: preview the upcoming Tetrimino in the Next Queue to plan ahead and increase your scoring opportunities.
- Hold queue: store a falling Tetrimino in the Hold Queue for later use.
- Ghost piece: use the Ghost Piece to determine the best fit for the falling Tetrimino. This helpful guide appears directly below the falling Tetrimino and displays possible placements.
- Level: As lines are cleared, the level increases and Tetriminos fall faster, making the game progressively more challenging.
- Simple scoring system: I actually didn’t know how to detect and give scoring rewards for twisting a tetromino into a tight space like T-spin double, T-spin triple... So I just skipped it. 😂😁
- Single line clear: 100 points
- Double line clear: 300 points
- Triple line clear: 500 points
- Tetris line clear (4 line clear): 800 points
- A part of JS source code is based on the “Create tetris game using JS and HTML 5” tutorial by Code Explained.
- CSS loading effect is based on the “Creative CSS loading animations effects” tutorial by Online Tutorials.