Skip to content

This was a game made in 2021-2 for the course Oriented-object Programming. Is developed in JavaScript using the p5 library.

Notifications You must be signed in to change notification settings

JuanLara18/Tetris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

This was a game made in 2021-2 for the course Oriented-object Programming. Is developed in JavaScript using the p5 library.

Topics

Resources

Stars

Watchers

Forks