Skip to content

A simple Tetris game built with PyOpenGL. This project is meant as a fun exercise to learn graphics programming and OpenGL basics in Python.

License

Notifications You must be signed in to change notification settings

NK-II/PyOpenGL---Tetris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

PyOpenGL Tetris

A simple Tetris game built with PyOpenGL.
This project is meant as a fun exercise to learn graphics programming and OpenGL basics in Python.


πŸ“¦ Requirements


βš™οΈ Installation

Clone the repository:

git clone https://github.com/yourusername/PyOpenGL-Tetris.git
cd PyOpenGL-Tetris

Create a virtual environment (optional but recommended):

python -m venv venv
source venv/bin/activate   # Linux / Mac
venv\Scripts\activate      # Windows

Install dependencies:

pip install -r requirements.txt

▢️ Running the Game

python game.py

πŸ“ Project Structure

PyOpenGL-Tetris/
β”‚
β”œβ”€β”€ game.py              # Main game file
β”œβ”€β”€ requirements.txt     # Dependencies
└── README.md            # Project documentation

πŸ™Œ Notes

  • The game only depends on PyOpenGL and PyOpenGL_accelerate, no extra assets are needed.
  • Tested with Python 3.10+, but should work with any modern Python 3.x version.

πŸ“œ License

This project is released under the MIT License. Feel free to use, modify, and share.

About

A simple Tetris game built with PyOpenGL. This project is meant as a fun exercise to learn graphics programming and OpenGL basics in Python.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages