palscii
1.0.0
一個簡單的命令行工具,用於為LibtCod等引擎創建字體調色板。
這也可以通過運行palscii --help來查看。
palscii - generate ASCII font palettes for rougelike engines
palscii is designed to be a dead-simple UNIX-like tool. It takes font files and makes PNG palettes,
and it aims to do that well.
### NOTES
The glyph parameters `width` and `height` are scaled to on a best-case scenario. In situations where
it is not possible to do so, cropping will occur and may result in undesirable visual artifacts.
In DEBUG builds of palscii, an assertion checks the validity of the scale operation, so palscii will
exit with an error.
USAGE:
palscii [OPTIONS]
OPTIONS:
-h, --height <HEIGHT>
Optional maximum glyph height, defualt: 16. See **Notes** for more details
[default: 16]
--help
Print help information
-i, --input <INPUT>
Optional path to input file, if not provided, STDIN will be used
-o, --output <OUTPUT>
Optional path to output to, if not provided, STDOUT will be used
-w, --width <WIDTH>
Optional maximum glyph width, default: 8. See **Notes** for more details
[default: 8]
TL; DR: cargo build或cargo build --release ,您應該是新的。
這是一個生鏽的項目,因此它重新定位了生鏽工具鏈。請參閱官方Rust網站以進行設置。
之後,它應該很容易:
git clone倉庫cargo build要建造,如果您不想要調試主張, cargo build --releasetarget/ ; palscii垃圾箱是獨立且便攜的我完全開發和測試了以下環境:
11.6 (Big Sur)rustc版本1.54.0cargo版本1.54.0我預計PalsCII不會在Linux發行版上運行任何問題,但是由於路徑的處理不同,Windows用戶可能會遇到一些怪癖。
cargo test如果您想手動測試,我包括了幾個已許可的字體及其各自的歸因和resources/中的許可文本。
PALSCII高水平使用OTF或TTF字體,並創建了16x16 PNG調色板,可用於Roogelike遊戲引擎(例如LibtCod或barket-lib)。
我在一個週末和那裡創建了palscii,在這里和那裡幾個小時,以便在閱讀赫伯特·沃爾弗森(Herbert Wolverson)的《銹書》(Rust Book)的rougelike時使用不同的字體。這本書可以在這裡找到,我強烈建議任何對Rust和Roogelike遊戲感興趣的人。
我將palscii設計為遵循Unix哲學的簡單工具。也就是說,它可以做一件事,並試圖做得很好。由於這也是我為了娛樂而製作的全部黑客項目(並支持我的主要娛樂項目,這使Roogelike造成了),因此在v0.1.0中的邊緣周圍仍然很粗糙。如果某些事情不太喜歡您想要的方式,請隨時在這里分叉和/或PR修復。