Dustforce level scripting framework
Project description
Dustmaker
=========
Dustmaker is a python3 library (only, at the moment) for read, manipulating, and
writing Dustforce level files.
Documentation
-------------
[http://dustkid.com/static/dustmaker/index.html](http://dustkid.com/static/dustmaker/index.html)
Installation
------------
easy_install3 dustmaker
or
pip install dustmaker
Creating A Map From Scratch
---------------------------
from dustmaker import write_map, Map, Tile, TileShape
map = Map()
map.start_position((0, 0))
map.virtual_character(True)
for (i, shape) in enumerate(TileShape):
map.add_tile(19, 2 * i, 1, Tile(shape))
map.name("Test Map")
f_out = "/home/msg555/.HitboxTeam/Dustforce/user/level_src/testmap"
with open(f_out, "wb") as f:
f.write(write_map(map))
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(f.read())
=========
Dustmaker is a python3 library (only, at the moment) for read, manipulating, and
writing Dustforce level files.
Documentation
-------------
[http://dustkid.com/static/dustmaker/index.html](http://dustkid.com/static/dustmaker/index.html)
Installation
------------
easy_install3 dustmaker
or
pip install dustmaker
Creating A Map From Scratch
---------------------------
from dustmaker import write_map, Map, Tile, TileShape
map = Map()
map.start_position((0, 0))
map.virtual_character(True)
for (i, shape) in enumerate(TileShape):
map.add_tile(19, 2 * i, 1, Tile(shape))
map.name("Test Map")
f_out = "/home/msg555/.HitboxTeam/Dustforce/user/level_src/testmap"
with open(f_out, "wb") as f:
f.write(write_map(map))
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(f.read())
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for dustmaker-0.2.1.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8f2468a6ea4decbbd5fb78440c2a9adb2dced70a8917681edffe97772750ea3 |
|
MD5 | de7a4c0a9b92cde6d29e69d06219d454 |
|
BLAKE2b-256 | 00cb7a7c515e12e5178242a7bd5e1fe0bf6c9c39cee0ae46f84f534f013676f7 |