Skip to content

DarrowCode/OOP-Tetris-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Tetris-OOP

A Tetris game implemented using Object-Oriented Programming (OOP) principles in JavaScript.

Table of Contents

Introduction

This project is a Tetris game built with JavaScript, HTML, and CSS. It uses OOP principles to manage game components such as the game board, pieces, and sounds.

Features

  • Classic Tetris gameplay
  • Sound effects
  • High score tracking
  • Responsive design
  • Dark mode support

Installation

  1. Clone the repository:
    git clone https://github.com/ByDarrow/Tetris-OOP.git
  2. Navigate to the project directory:
    cd Tetris-OOP

Usage

Open in your web browser to start playing the game.

Controls

  • Left Arrow: Move piece left
  • Right Arrow: Move piece right
  • Down Arrow: Soft drop
  • Space: Hard drop
  • Up Arrow: Rotate piece right
  • Q: Rotate piece left
  • ESC: End game

Contributing

Contributions are welcome! Please fork the repository and create a pull request with your changes.

License

This project is licensed under the MIT License.

About

A Tetris game built as part of a school assignment, demonstrating the principles of Object-Oriented Programming (OOP). The project showcases key OOP concepts such as encapsulation, inheritance, and polymorphism to create a fully functional and interactive game.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors