Skip to main content

A package that simplifies repetitive pygame code.

Project description

Pygame Util

A package that simplifies repetitive pygame code.

Window

Here's how you would do it in pygame:

window = pygame.display.set_mode((600, 400))
window.set_caption("example caption")
window.set_icon(example_icon)

background_color = (255, 255, 255)

clock = pygame.time.Clock()
fps = 60

running = True
while running:
    for event in pygame.event.get():
        if event.type == pygame.QUIT:
            running = False

    clock.tick(fps)
    window.fill(background_color)

    # render the images you want to show on the screen

    pygame.display.flip()

Here's how you would do it in pygame_util:

window = Window((600, 400), icon=icon, caption="example_caption", force_quit=True)

while True:
    # render images you want to show on the screen
    window.update()

Text

Images

Colors

Timers

Positioning

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

pygame_util-1.0.5.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

pygame_util-1.0.5-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file pygame_util-1.0.5.tar.gz.

File metadata

  • Download URL: pygame_util-1.0.5.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.2 Darwin/23.5.0

File hashes

Hashes for pygame_util-1.0.5.tar.gz
Algorithm Hash digest
SHA256 4e93bd2d4d7839eda58e8a008f1144db71b0c288d4418f31278f53b5619941e6
MD5 8b876b0daa9e57ce9978e2df9ea2d7bd
BLAKE2b-256 1b8e76ea4c25f456188459722a9dbd8af6c47f9a78d9f1eae0fabc9f80d5282a

See more details on using hashes here.

File details

Details for the file pygame_util-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: pygame_util-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.2 Darwin/23.5.0

File hashes

Hashes for pygame_util-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 060bbbaa398b59a4c0d77dba1bb3fb767f09b3a00d89a6797c2c729e23fa0c86
MD5 097fa70cccac3e0361b69517d66ce8f6
BLAKE2b-256 a8cf9c922944abc33257922c3fe924b5bd797e6441f3cecb9d9b5dc09ab4e5bf

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