Skip to main content

PyGame Tools

This is a package designed to make development in pygame easier my creating some classes that handle alot of the loop

installation

pip install pygame-tools

The most important class GameScreen is a class that represents a 'screen' in the game and is meant to be inherited to be used.

import pygame
from pygame_tools import GameScreen, Point

class Example(GameScreen):
    def __init__(self):
        pygame.init()
        real_size = Point(600, 600) # size of window itself
        size = real_size / 40 # 1 pixel for every 40
        super().__init__(pygame.display.set_mode(real_size), real_size, size)

    def update(self):
        pygame.draw.line(self.screen, (255, 255, 255), (0, self.window_size.y / 2), (self.window_size.x, self.window_size.y / 2))

example = Example()
example.run()
# This example shows a black screen with a white line through the center

Metadata

Release files for pygame-tools 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pygame-tools 0.1.6
File Size Uploaded Provenance Actions
pygame-tools-0.1.6.tar.gz 9.6 kB Without provenance Details for pygame-tools-0.1.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pygame-tools 0.1.6
File Interpreter ABI Platform Actions
pygame_tools-0.1.6-py3-none-any.whl Python 3 none any Details for pygame_tools-0.1.6-py3-none-any.whl

Total release size: 19.5 kB

Release files / pygame-tools-0.1.6.tar.gz

Download URL pygame-tools-0.1.6.tar.gz
Size 9.6 kB
Tags Source
SHA-256 checksum
How to use checksums
5ea6365c7a85e8cfe27eb34df610bb86d71d9da22a1113222844880e0e220aa7
BLAKE2b-256 checksum
How to use checksums
368e4a382ccb3abc6b2d4e09207f9edb4f972b9080057bde8099f996c1572788
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.17

Release files / pygame_tools-0.1.6-py3-none-any.whl

Download URL pygame_tools-0.1.6-py3-none-any.whl
Size 9.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7f2b4199caf3ac06a94af09ed12e502e3406b0a2f73169c24c09b0659130ba49
BLAKE2b-256 checksum
How to use checksums
2d5630380cab2e8420d9d438ebc16493025362101b286c056d8d1f60366fe0cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.17

Security for pygame-tools 0.1.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page