Skip to content

🎮 Tetris game made with the Pygame library in Python

Notifications You must be signed in to change notification settings

dojje/tetris-pygame

 
 

Repository files navigation

Tetris

Tetris game made with the Pygame library in Python.

Installing

Download the Python 3 installer package from the official website and install it, if not installed previously.

Run the following in the terminal to install the Pygame library

pip3 install pygame

Another alternative would be to import the contents of the repository in a PyCharm project. The Pygame library can be installed in a virtual environment of PyCharm using the steps mentioned here.

Running the application

Download the source code from the repository and run the file just as any other Python script (.py) file.

python3 Tetris.py

If the project is imported in PyCharm, then the file can be run directly by setting the appropriate configurations.

Note: The filepath and fontpath for the text files and fonts need to be updated according to the location of the project on the user's machine.

Screenshots

1 Startup screen

2 Active game screen

Prerequisites

  • Python
  • Pygame, an open source Python library for making multimedia applications
  • PyCharm, an integrated development environment for the Python language developed by JetBrains

Authors

  • Rajat Dipta Biswas - Initial work

See also the list of contributors who participated in this project.

Acknowledgements

About

🎮 Tetris game made with the Pygame library in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%