Skip to main content

pygame-builder

Introduction

Use this package to create a game in python in just a few lines of code. Built on top of Pygame, this module is perfect for beginners looking to make their first game. Experts may also find this useful when trying to save time. Enjoy!

Code Format

from pygame_builder import Pygame, Element, Image

with Pygame(backgroundImage : Image = image, size : list = [480, 270], windowCaption = "Pygame", fps = 60, backgroundColour : tuple = (0, 0, 0), backgroundMusic : Music = None), backgroundSound = None) as pg:
    element = Element(image : Image, parent, centerPosition = [0, 0], speed = [1, 1])
    pg.add(element)
    pg.loop(lambda : <callable>)

Example

from pygame_builder import Pygame, Element, Image

ballGif = "/path/to/ball.gif"

def main():
	ball.bouncingAnimation()

with Pygame() as pg:
    ball = Element(Image(ballGif), pg, pg.getScreenCenter(), [2, 2])
    pg.add(ball)
    pg.loop(lambda : main)

Metadata

Release files for pygame-builder 0.2.1

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-builder 0.2.1
File Size Uploaded Provenance Actions
pygame_builder-0.2.1.tar.gz 5.4 kB Without provenance Details for pygame_builder-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pygame-builder 0.2.1
File Interpreter ABI Platform Actions
pygame_builder-0.2.1-py3-none-any.whl Python 3 none any Details for pygame_builder-0.2.1-py3-none-any.whl

Total release size: 11.6 kB

Release files / pygame_builder-0.2.1.tar.gz

Download URL pygame_builder-0.2.1.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a76fc15fe0905ff87c6fdf94fd2f0bbebd2c58d1f60ebaf66af650614eccb16d
BLAKE2b-256 checksum
How to use checksums
b7c746776c292beb3c319616c249fbea049f9bfd7fb141c312e79749de08c813
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/29.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.62.0 importlib-metadata/4.6.3 keyring/23.0.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.9.10

Release files / pygame_builder-0.2.1-py3-none-any.whl

Download URL pygame_builder-0.2.1-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
45a8b0b42cde993d6e105edd460f948453eeb8d30cfad55e6f1d28f447f367a1
BLAKE2b-256 checksum
How to use checksums
743d8fe3af688d000d31b8b38d784a3cde0d2fdb849b67583ef3e5806dff01e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/29.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.62.0 importlib-metadata/4.6.3 keyring/23.0.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.9.10

Security for pygame-builder 0.2.1

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