/Tetris

This project was developed as a sub-task for another project while implementing the conventional Tetris/Tetrominoes Game in an Object Oriented Manner.

Primary LanguagePython

Version Tag Python Tag

Tetris

My version of a Tetrominoes game that I made using pygame. This project was developed as a sub-task for another project while implementing it in an Object Oriented Manner. Each line of code is accompanied by a comment to explain it better.

Files in the Repository -

The files in the repository are :

README.md

The Description file containing details about the repository. The file that you looking at right now.

__init__.py

The __init__.py file is to make Python treat directories containing the file as packages.

global_variables.py

This file contains the global variables that are used in the game such as SCREEN_WIDTH, SCREEN_HEIGHT, etc.

main.py

This file is contains the game and its working. To play the game, use -

python3 main.py

piece.py

This file contains the class templates for the various shapes of pieces in the game i.e. Piece class.

shapes.py

This file contains the shapes of each of the game pieces as lists of lists, it also contains information about the color of each block in RGB format.

tetris.py

This file contains the class template for the main game-play i.e. Tetris class.

requirements.txt

This file contains the respective packages needed to be installed. To install the respective packages, use -

pip3 install -r requirements.txt

or 

pip install -r requirements.txt

.images

This directory contains the images for the game icon and README File.

Game Image -

Game Image

Bibliography

Developers Tag