This repository contains a simple implementation of the classic Tetris game using JavaScript and the p5.js library. The project was created for educational purposes and is intended for anyone who wants to learn more about game development using JavaScript and p5.js.
To run the game, simply open the index.html file in your web browser. No special setup is required. The game should work on most modern browsers.
- Move the falling tetromino left: Press the left arrow key
- Move the falling tetromino right: Press the right arrow key
- Rotate the falling tetromino: Press the up arrow key
- Soft drop: Press the down arrow key
- Hard drop: Press the space bar
The game includes the basic functionality of the original Tetris game, such as moving and rotating the tetrominos, clearing completed rows, and increasing the game speed as the player progresses. The game also includes a simple scoring system that increases as the player clears rows.
This project uses the p5.js library, a JavaScript library for creative coding. The library provides a simple and intuitive way to create interactive graphics, animations, and games using JavaScript.
This project is open to contributions from anyone who is interested. If you have ideas for improvements, feel free to submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.