| src | readme, feature flags for pkg-config and vcpkg | |
| .gitignore | psic | |
| Cargo.lock | readme, feature flags for pkg-config and vcpkg | |
| Cargo.toml | readme, feature flags for pkg-config and vcpkg | |
| README.md | readme, feature flags for pkg-config and vcpkg | |
puzzlescript image converter
This is a simple tool to convert images to puzzlescript format. Currently it takes two files as input: your tileset, and a list of names for your tiles. This is very simple and doesn't detect errors like too many colors yet.
Pass the tileset image with the --tileset option. The tileset should be a vertical
strip of tightly packed 5x5 pixel tiles.
Pass the file with the list of names with the --names option. This should be a text
file with one name per line in the same order as the tiles of your tileset, from top
to bottom.
For example,
psic --names tiles.txt --tileset tiles.png
or for building and running via cargo,
cargo run --release -- --names tiles.txt --tileset tiles.png
The tiles in puzzlescript format are written to standard output.
Building
This tool depends on SDL3 and SDL3_image and needs the development libraries of those
to be available. If you need pkg-config or vcpkg to locate the libraries, enable the
use-pkg-config or use-vcpkg features, respectively. For example,
cargo run --release --features use-pkg-config -- --names tiles.txt --tileset tiles.png