Skip to main content

A Python library containing components and implementations of the game Pong for Pygame

Project description

python-pong

python-pong is a simple, open-source Python library for quickly setting up components and games of Pong in Pygame.

Installation

python-pong can be installed from PyPI using pip. Simply run the command python -m pip install python-pong globally, or in your virtual Python project environment, where python is your current Python distribution.

Usage

python-pong makes usage of multiple packages containing modules and classes that can be easily incorporated into a Pygame Python project to assist the development of a custom game of Pong.

pong.components

The pong.components package contains only classes that implement individual components that can be used within a game of Pong. Each component should be attached to a pygame.Surface object during instantiation.

pong.game

The pong.game package contains only classes that implement configurable games of Pong in Pygame. These classes might require additional dependencies such as Tkinter within the Python standard library.

pong.utility

The pong.utility package contains modules that provide useful global constants, classes and functions for development of a game of Pong in Pygame.

An example of the python-pong library being used to create a basic game of Pong is shown in the following:

from pong.game.Basic import Basic


def main():
    # create a pre-configured instance of a basic Pong game
    Basic()

    
if __name__ == "__main__":
    main()

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

python-pong-1.0.1.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

python_pong-1.0.1-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file python-pong-1.0.1.tar.gz.

File metadata

  • Download URL: python-pong-1.0.1.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for python-pong-1.0.1.tar.gz
Algorithm Hash digest
SHA256 c44d3616f9d827bb5c47c192f37de04d067752e4d58a6317e07addc529c16faa
MD5 52bee2e4377613d13a67cd21768ba0f0
BLAKE2b-256 28ec4b899b69920371b57e0ead89fbf32c1b012a9a14b5ef3ff8c560c8eceb60

See more details on using hashes here.

File details

Details for the file python_pong-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: python_pong-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for python_pong-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e98b972a3dab97cb5e0a9509d9d901a0e391b3a04a8812da9e399d09c3462efb
MD5 5d9bcd52e4b080644128cd3a417bb25d
BLAKE2b-256 6f54d74f1967151ebeabd3f131980a69c2c9713ac6e0543efd5fadadcc438dbb

See more details on using hashes here.

Supported by

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