Skip to main content

One-day Tetris programming challenge using pyglet

Project description

PyGL-Tetrix

A Tetris clone written using Pyglet. This was done as a one-day project to practice pyglet and programming concepts. This was originally a one-file program, but is now a full python package.

Installation instructions

To play, simply install the package using the command below in the command prompt or terminal.
pip install PyGL-Tetrix
Then, use the following command to run the package.
python -m pygl_tetrix

Controls

  • Move piece left - Left Arrow (←)
  • Move piece right - Right Arrow (→)
  • Move piece down - Down Arrow (↓)
  • Rotate piece clockwise - E
  • Rotate piece counter-clockwise - Q
  • Pause game - Space

Features

  • Eight difficulty levels
  • All regular tetrominos
  • Rotation around proper points
  • Score tracking

WIP

  • Hold piece function
  • Next piece display
  • Increased score for multiple line clears
  • Rotation "kicking"
  • Option to restart after game over

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PyGL-Tetrix-0.0.1.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

PyGL_Tetrix-0.0.1-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file PyGL-Tetrix-0.0.1.tar.gz.

File metadata

  • Download URL: PyGL-Tetrix-0.0.1.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.2

File hashes

Hashes for PyGL-Tetrix-0.0.1.tar.gz
Algorithm Hash digest
SHA256 f0ba63fb48d02e1e157b2df78221e9ee9d882cb48bb4860a67dbc14da21187a3
MD5 94167211398a2a26b96f2df3046eb89e
BLAKE2b-256 9d29f68a02a71814c89f2f571dbe84b82010b0342d59568aa68668fb11ec09da

See more details on using hashes here.

File details

Details for the file PyGL_Tetrix-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: PyGL_Tetrix-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.2

File hashes

Hashes for PyGL_Tetrix-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bc8563ad367d0001ca7454870536a1b2e2942092d9feaed45cc79e2efba2842b
MD5 31d796003f78b7d915e836b91ffb4ea7
BLAKE2b-256 3957e0a7f794ef0349658ef8226a069ef36ccea745e2b378de72a90607765fd3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page