A zero-boilerplate 2D games framework
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pgzero-1.0beta1.tar.gz
.
File metadata
- Download URL: pgzero-1.0beta1.tar.gz
- Upload date:
- Size: 141.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd1c213ea9c770d2017261a6c265c70dc998ced6ffa8e637e2dadc7aedeedcd5 |
|
MD5 | b7f1a2517d1e3f5c58178cc40bb48917 |
|
BLAKE2b-256 | df08602ad33d8d5473af10fafee73b80cbf1621bae155c8cde7db2f8040531ab |