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-0.0.1.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: python-pong-0.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-0.0.1.tar.gz
Algorithm Hash digest
SHA256 790e303c243349531cf2d7f688f40300146733248de689fea48897cd1b6d0e7b
MD5 9f7aba19c4cc84a856bd7e69a3c8002c
BLAKE2b-256 0a9470f09457aabd033fc9047281b624c040a59ac661c8e3956749fa5c3aa0b6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: python_pong-0.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-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 76745e11cee542de99525438d9ee3d24acf14a8a045b7cc56963a0211eebed95
MD5 335c1e4f8bccdcafb6e4b20b896999bc
BLAKE2b-256 88c5277742d5d1ffaefadb4aaf36d820970491a5e37d727c84381cf38fb3fdc1

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