Crates.io | png-to-twmap |
lib.rs | png-to-twmap |
version | 0.4.2 |
source | src |
created_at | 2024-04-20 01:01:17.34818 |
updated_at | 2024-04-26 16:08:52.478722 |
description | Creates a teeworlds map from a png |
homepage | |
repository | https://github.com/hardliner66/png-to-twmap |
max_upload_size | |
id | 1214263 |
size | 53,247 |
Takes a png and builds a teeworlds map out of it.
Create a png and call the converter, passing the path as an argument. It should also work to drag & drop the file onto the exe, if you're on windows.
Name | HTML-Color | preview |
---|---|---|
Hookable | #B97A57 | |
Unhookable | #FF7F27 | |
Air | #000000 | |
Freeze | #C3C3C3 | |
Spawn | #3F48CC | |
Start | #FFC90E | |
Finish | #22B14C |
To configure which color gets mapped to which entity id, first export the default config:
png-to-twmap --print-default-mappings > config.rsn
Then you edit the config file and add a mapping from an RGBA color to an entity id.
There are a few pre-defined entity types that are named:
If you need some other entity, you can use Custom
with the appropriate id.
For instance:
Custom(123)