A fast, cutting-edge 2D game engine for Python.
Current features include:
- Sprites, text, and stroked and filled polygons - all rotatable, scalable, and colorizeable
- A coroutine programming model for easy animated effects.
- Particle systems
- Built-in post-processing effects using GLSL shaders.
- Sound, music and tone generation.
- Event driven input handling for keyboard and mouse.
- Animation/tweening.
- "Local storage" to easily save state.
Wasabi2D is based on moderngl, with pygame 2.0 for some supporting functions, and supporting APIs ported from Pygame Zero.
Quick example
Draw a drop-shadowed circle that follows the mouse:
import wasabi2d as w2d
scene = w2d.Scene()
scene.background = 0.9, 0.9, 1.0
scene.layers[0].set_effect('dropshadow')
circle = scene.layers[0].add_circle(
radius=30,
pos=(400, 300),
color='red',
)
@w2d.event
def on_mouse_move(pos):
circle.pos = pos
w2d.run()
Installation
Use pip to install Wasabi2d from PyPI:
pip install wasabi2d
Please make sure your requirements.txt pins a major version, as Wasabi2D may
continue to make breaking API and graphical changes in major versions.
Documentation
Documentation is available at https://wasabi2d.readthedocs.io/
Screenshots
This screenshot shows off polygons, sprites, text and particle effects:
Roller Knight was an entry in PyWeek 28, written with Wasabi2D by Daniel Pope and Larry Hastings:
Spire of Chaos was another entry in PyWeek 28 written with Wasabi2D by Daniel Moisset:
Metadata
Release files for wasabi2d 1.4.1
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 |
|---|---|---|---|---|
| wasabi2d-1.4.1.tar.gz | 547.6 kB | Without provenance | Details for wasabi2d-1.4.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wasabi2d-1.4.1-py3-none-any.whl | Python 3 | none | any | Details for wasabi2d-1.4.1-py3-none-any.whl |
Total release size: 846.3 kB
Release files / wasabi2d-1.4.1.tar.gz
| Download URL | wasabi2d-1.4.1.tar.gz |
|---|---|
| Size | 547.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
40e302e5b90954c87adfbe4d7951d5b5b3e2e159f8b95b37caa0bf4b39c97ace
|
|
BLAKE2b-256 checksum How to use checksums |
83a96e65523cf3704d9c0d25e1a06da79c07d0fe67ebfbcbe53158c471df8b9e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.1
|
Release files / wasabi2d-1.4.1-py3-none-any.whl
| Download URL | wasabi2d-1.4.1-py3-none-any.whl |
|---|---|
| Size | 298.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9e984395ae7692c7ed0e6310bd050b8b87e6432130de4a35e67017e81b4c32d8
|
|
BLAKE2b-256 checksum How to use checksums |
882320c5274b92542635dbcf4743fa5bb086d07ad213e11d0d1f22253959633f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.1
|
Security for wasabi2d 1.4.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.