A simple falling blocks game implemented using HTML, CSS, and JavaScript.
The objective of the game is to control a falling block and prevent it from reaching the bottom of the game container. The block falls continuously from the top of the container, and your task is to move the block left or right to avoid obstacles and keep it from touching the bottom.
The falling blocks game includes the following functionalities:
- Falling Blocks: The game features falling blocks of different shapes and colors that descend from the top of the game container.
- Block Movement: Players can move the falling blocks horizontally using the left and right arrow keys.
- Block Rotation: Players can rotate the falling blocks clockwise using the up arrow key to adjust their orientation and fit them into available spaces.
- Line Clearing: When a complete horizontal line is formed by filling it with blocks, the line disappears, and the player earns points.
- Scoring System: The game keeps track of the player's score, rewarding points for each cleared line.
Arrow Left: Move the player platform to the left.
Arrow Right: Move the player platform to the right.
Spacebar: Pause the game.
R: Resume the game.
Enter: Restart the game.