This release is a pre-release and may not be stable for production use.
Pygame Zero
A zero-boilerplate games programming framework based on Pygame.
Some examples
Pygame Zero consists of a runner pgzrun that will run a Pygame Zero script with a full game loop and a range of useful builtins.
Here’s some of the neat stuff you can do (each one of these would be a self-contained, runnable script):
Draw graphics (from the images/ directory):
def draw():
screen.clear()
screen.blit(images.dog, (10, 50))
Play a sound (from the sounds/ directory) when you click the mouse:
def on_mouse_down():
sounds.eep.play()
Update and draw an “actor” object:
alien = Actor('alien')
alien.pos = 10, 10
def draw():
screen.clear()
alien.draw()
def update():
alien.x += 1
if alien.left > WIDTH:
alien.right = 0
Installation
Install Pygame for Python 3
Install Pygame Zero (python setup.py install)
“python3 -m pgzero <pgzero program>” or (if installed correctly) pgzrun <program>
Documentation
The full documentation is at http://pygame-zero.readthedocs.org/.
Read the tutorial at http://pygame-zero.readthedocs.org/en/latest/introduction.html for a taste of the other things that Pygame Zero can do.
Metadata
Release files for pgzero 1.0beta1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pgzero-1.0beta1.tar.gz | 141.1 kB | Without provenance | Details for pgzero-1.0beta1.tar.gz |
Release files / pgzero-1.0beta1.tar.gz
| Download URL | pgzero-1.0beta1.tar.gz |
|---|---|
| Size | 141.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fd1c213ea9c770d2017261a6c265c70dc998ced6ffa8e637e2dadc7aedeedcd5
|
|
BLAKE2b-256 checksum How to use checksums |
df08602ad33d8d5473af10fafee73b80cbf1621bae155c8cde7db2f8040531ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pgzero 1.0beta1
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.