A fast moving zero-boilerplate 2D games framework
Project description
A quicker moving fork of the zero-boilerplate games programming framework Pygame Zero, based on Pygame.
The documentation for Pygame Turbo is found here: https://pgturbo.readthedocs.io/
The documentation for Pygame Zero is found here: https://pygame-zero.readthedocs.io/en/stable/index.html
The GitHub of Pygame Zero is found here: https://github.com/lordmauve/pgzero
Switching to Pygame Turbo
If you’ve been working with Pygame Zero so far and want to use some of the new features in Pygame Turbo, it’s easy to switch over.
First, install the pgturbo pip-package:
pip install pgturbo
If you’ve been running your game with the command pgzrun from the command line, you can simply switch to running it with the command pgtrun instead.
If you’ve been using import pgzrun and pgzrun.go() in your main script, you only have to change these to import pgtrun and pgtrun.go().
That’s it!
Divergence to Pygame Zero
This is a changelog which keeps track of which changes exist in respect to the main Pygame Zero project. If and when those features are added to Pygame Zero, they will be removed from the running list.
New features
A proper mouse builtin to get the state of different mouse properties like positions, relative movements, state of buttons being pressed and more. Also allows changing of visibility, cursor shape and others.
Feature enhancements
Pixel perfect collision check between two actors via actor1.collidemask(actor2).
Angle and target-based movement functions for Actors, similar to what is possible in Scratch and other environments.
Velocity property and movement function for Actors that only move in straigth lines. Also includes an intercept function to calculate necessary velocity to meet a target actor that also has a constant velocity.
Create Actors from simple shapes without needing an image, via Actor.Rectangle(width, height, color), Actor.Ellipse(width, height, color) and Actor.Triangle(width, height, color).
Function to check if an actor is currently withing the screen bounds: .is_onscreen().
Bug fixes
Fixed music.is_playing() requiring an argument.
Made actor width and height read-only properties while no solution for scaling actors is implemented.
Integrated changes
These former divergences between Pygame Turbo and Pygame Zero have been introduced to Pygame Zero itself:
None so far.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pgturbo-1.3.6.tar.gz.
File metadata
- Download URL: pgturbo-1.3.6.tar.gz
- Upload date:
- Size: 3.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c67b1ed8ff5eb93cb917a799971ae482170a9e2b9145609517b7042b9c2d548
|
|
| MD5 |
848a462e4702649224b1058334b314c6
|
|
| BLAKE2b-256 |
5ba8ac8966e215894c10dc7e56c2ebb85078637a0203ac95298b0e8779927d5d
|
File details
Details for the file pgturbo-1.3.6-py3-none-any.whl.
File metadata
- Download URL: pgturbo-1.3.6-py3-none-any.whl
- Upload date:
- Size: 84.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
689cb8f814b84bd005fedc3f4af182f1c4cc2886a4f6fc5f34774f5973e0f510
|
|
| MD5 |
4363c93439d478b527ae67bc641f7980
|
|
| BLAKE2b-256 |
e060e59dac667246a8f5901b46af4f0fa7c19640863f32fa1b1600086ea91788
|