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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: python-pong-1.0.0.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.0.tar.gz
Algorithm Hash digest
SHA256 3ac97e5b584f5af78fccac9e14f548a2608cc9ea58859e5058d1744605ee52a3
MD5 91f5d4d8e918671098a029382a8c26b5
BLAKE2b-256 780abaee74552806c34740309b23d3724f522d38c92c4371f53de3a930be17fa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: python_pong-1.0.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 972f8be27625a4a281a4a1752732eb98023803fd2b21925c9e2b2677534359f0
MD5 5e6e8c8cc45a3c5a819639b865a168f4
BLAKE2b-256 12c4c117ccbe92f5ab32742562c6134d29ff6ed31e2d79ef321164fee666e921

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