A simple Tetris game built with PyOpenGL.
This project is meant as a fun exercise to learn graphics programming and OpenGL basics in Python.
- Python 3.x
- PyOpenGL
- PyOpenGL_accelerate
Clone the repository:
git clone https://github.com/yourusername/PyOpenGL-Tetris.git
cd PyOpenGL-TetrisCreate a virtual environment (optional but recommended):
python -m venv venv
source venv/bin/activate # Linux / Mac
venv\Scripts\activate # WindowsInstall dependencies:
pip install -r requirements.txtpython game.pyPyOpenGL-Tetris/
β
βββ game.py # Main game file
βββ requirements.txt # Dependencies
βββ README.md # Project documentation
- 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.
This project is released under the MIT License. Feel free to use, modify, and share.