1
0
Fork
You've already forked psic
0
puzzlescript image converter
Rust 100%
2025年06月25日 16:10:53 +02:00
src readme, feature flags for pkg-config and vcpkg 2025年06月25日 16:10:53 +02:00
.gitignore psic 2025年06月25日 15:51:42 +02:00
Cargo.lock readme, feature flags for pkg-config and vcpkg 2025年06月25日 16:10:53 +02:00
Cargo.toml readme, feature flags for pkg-config and vcpkg 2025年06月25日 16:10:53 +02:00
README.md readme, feature flags for pkg-config and vcpkg 2025年06月25日 16:10:53 +02:00

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