Recently, on a whim and with a little leisure, I started writing the first JavaScript version of Easy Tetris.
First, here are the screenshots of the Easy Tetris game:
Since some people are cheating, a projection function has been added:
Since the function key shielding of non-IE browsers cannot be perfectly implemented, the "Refreshing Page" in the game page is used to hide other page modules in the non-game area to clear the page scroll bar. Afterwards, the hidden page can be re-expanded through "Expand Page" .
After some tests, it was found that when running Easy Tetris in non-IE browsers under certain systems, there is a sticky feeling when moving left and right. Interested friends can discuss optimization together.
Easy Tetris implements the core part
next block
game area
Game coloring area
game cubes
blocks and shapes
Projection part