Design levels visually. Export to Pygame Zero.
A visual level editor for students creating Pygame Zero games. Draw rectangles, circles, and place actors on a canvas, then export to JSON for use in your games.
Includes editor, Python helper library, and example game
Draw rectangles and circles with customizable colors, sizes, and fill options. Perfect for platforms, obstacles, and collectibles.
Add your own images as actors. Set anchor points matching Pygame Zero's system for precise positioning.
Align elements precisely with configurable grid sizes (10, 25, or 50 pixels). Edge snapping for pixel-perfect layouts.
Save levels as clean JSON files. Load them in Pygame Zero with the included Python helper library.
from pgzlevel import Level
level = Level("levels/level1.json")
WIDTH = level.width
HEIGHT = level.height
def draw():
screen.fill(level.background_color)
level.draw(screen) # Draw shapes
level.draw_actors(screen) # Draw actors
pgzrun.go()