Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Dustforce level scripting framework

Project description


Dustmaker is a python3 library (only, at the moment) for read, manipulating, and writing Dustforce level files.



easy_install3 dustmaker


python3 -m pip install dustmaker

Creating A Map From Scratch

from dustmaker import write_map, Map, Tile, TileShape

map = Map()
map.start_position((0, 0))
for (i, shape) in enumerate(TileShape):
  map.add_tile(19, 2 * i, 1, Tile(shape))"Test Map")

f_out = "/home/msg555/.HitboxTeam/Dustforce/user/level_src/testmap"

with open(f_out, "wb") as f:

Reading in an existing map

from dustmaker import read_map

f_in = "/home/msg555/Dustforce/content/levels2/downhill"
with open(f_in, "rb") as f:
  map = read_map(

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 dustmaker, version 0.3.1
Filename, size File type Python version Upload date Hashes
Filename, size dustmaker-0.3.1.tar.gz (18.9 kB) File type Source Python version None Upload date Hashes View

Supported by

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