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.2.tar.gz (6.8 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.2-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: PyGL-Tetrix-0.0.2.tar.gz
  • Upload date:
  • Size: 6.8 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.2.tar.gz
Algorithm Hash digest
SHA256 9a0778108b277127b495dee4a88ec618937a8742ec682bc1e3659e6c27ecdc30
MD5 d3e2c5176a0832fc7a5d10f173a2960b
BLAKE2b-256 03a4fd079128aa0ed6c49435516ecd30fa63d05a8f45289b232a34ba059b0260

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyGL_Tetrix-0.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 39dba8847850b947bf57d80821c47c37436435f6a4d756e3751527f53bebee29
MD5 5ee1c563435c13a29af69bbe794d63b7
BLAKE2b-256 94c6d2a95e7f88d9ead68bff8d8bff5e4ae724dc3b7e1894602e7e9c6cd51533

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