A classic Tetris game built with React's CRA
Live app: https://tetris.mjagminas.com
The game starts automatically. The highest score will be saved in the browser's local storage. User can use a keyboard, or use the interactive buttons on Tetris to control the game.
- To move the figure to the left press the
left arrow
key, or press the left arrow on the screen. - To move the figure to the right press the
right arrow
key, or press the right arrow. - To rotate the figure press
up arrow
key, or press the up arrow. - To drop the figure down use
arrow down
key, or press the down arrow. - To pause or resume the game press
p
key, or usepause/resume
button on the screen. - To start a new game press
s
key, or press start button.
Clone the project on the local machine:
git clone https://github.com/mariusjagminas/tetris.git
Install all dependencies:
npm install
Start a development server:
npm start
Open http://localhost:3000 to view game in the browser.