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 Distribution
dustmaker-0.2.tar.gz
(12.7 kB
view hashes)
Built Distribution
dustmaker-0.2.linux-x86_64.tar.gz
(30.7 kB
view hashes)
Close
Hashes for dustmaker-0.2.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6cb3ec85c21b5ddc2ccfbd0b650f2a93b4dde0369c3aa21e45233c6460257ce4 |
|
MD5 | 3af55665428957f7484f7b7b4de4a502 |
|
BLAKE2b-256 | c51b6c31b75691339c817d47e6862bd088c43132fbdcff39f4fce9ff79255093 |