Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 1.47 KB

README.md

File metadata and controls

25 lines (19 loc) · 1.47 KB

Tetris Game using p5.js

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.

Getting Started

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.

Controls

  • 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

Features

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.

Library

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.

Contributions

This project is open to contributions from anyone who is interested. If you have ideas for improvements, feel free to submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.