A simple parser library for the game DeltaDash.
Project description
deltadash.py
A simple, dependency-less library for programatically interfacing with DeltaDash's file formats.
Current features
deltadash.py currently includes the following features:
- Difficulty reading and deserialisation
- Difficulty writing and deserialisation
Example
Here is an example of how to read, modify and write a DeltaDash map through the deltadash.py library!
# deltadash.py map reading example
from deltadash.maps.difficulty import Difficulty
# Read a .dd file
diff = Difficulty.from_file("test_res/debug.dd")
# Print the difficulty's full name
print(diff.full_name)
# Change the difficulty name
diff.name = "New Name"
# Write the difficulty to a new file
diff.into_file("test_res/debug_new.dd")
You may view more examples in the examples
directory of this repo!
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
deltadash-0.1.0.tar.gz
(6.3 kB
view details)
File details
Details for the file deltadash-0.1.0.tar.gz
.
File metadata
- Download URL: deltadash-0.1.0.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cef8b5922b9363b6d326df1a43e2c9fb04b07cdf49d5317831734d52b84fcb9 |
|
MD5 | 4eee42596698445b32c180a954ff799a |
|
BLAKE2b-256 | 33955c1f6a6b2ba2d49f7def7bc02e6ba8059173b19797c1f528b91dc771967c |