python bindings for ddnet map loader
Project description
ddnet_maploader_py
Python bindings for https://github.com/Teero888/ddnet_maploader_c99
dependencies
git clone https://github.com/Teero888/ddnet_maploader_c99
cd ddnet_maploader_c99
git checkout 68de38e317ea5fb2ed005479c6046338007d8420
mkdir build && cd build
cmake ..
make install
sample usage
#!/usr/bin/env python3
import ddnet_maploader
with ddnet_maploader.load_map("/home/chiller/.teeworlds/maps/tinycave.map") as map:
x = 3
y = 3
tile = map.game_layer.data[y * map.width + x]
print(f"at x={x} y={y} tile={tile}")
for setting in map.settings:
print(f"map setting: {setting}")
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
ddnet_maploader-1.0.0.tar.gz
(3.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ddnet_maploader-1.0.0.tar.gz.
File metadata
- Download URL: ddnet_maploader-1.0.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cab7c82a073387c33a4b64162d767eb1307b3a60420d2f242a16fe3c7aecf268
|
|
| MD5 |
97143b53502d71bbe8fa79b687c2ffcc
|
|
| BLAKE2b-256 |
595bf10e9c5d47336299f97691003ca27f4bfb6927699fde834dbbb10a043a17
|
File details
Details for the file ddnet_maploader-1.0.0-py3-none-any.whl.
File metadata
- Download URL: ddnet_maploader-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bde470af07916aeebedb5da978dd3f51a616d9a5aa7c93bf6b02ec8cee089132
|
|
| MD5 |
08b80b2247129a7a924b8c1a038a835e
|
|
| BLAKE2b-256 |
746d1b6abebc46bae9fd25dbe76080fbab6c9284a0db8db8448af7d80ef6be77
|