Skip to main content

A convenient 2D OpenGL games framework

Project description

Wasabi 2D

PyPI PyPI - Python Version PyPI - Wheel


A fast, cutting-edge 2D game engine for Python.

Current features include:

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

circle = scene.layers[0].add_circle(
    pos=(400, 300),

def on_mouse_move(pos):
    circle.pos = pos

Output of the above program


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 is available at


This screenshot shows off polygons, sprites, text and particle effects:

Screenshot as of Wasabi2d 1.0.0

Roller Knight was an entry in PyWeek 28, written with Wasabi2D by Daniel Pope and Larry Hastings:

Roller Knight screenshot

Spire of Chaos was another entry in PyWeek 28 written with Wasabi2D by Daniel Moisset:

Spire of Chaos screenshot

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for wasabi2d, version 1.4.0
Filename, size File type Python version Upload date Hashes
Filename, size wasabi2d-1.4.0.tar.gz (530.7 kB) File type Source Python version None Upload date Hashes View
Filename, size wasabi2d-1.4.0-py3-none-any.whl (298.6 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page