From adb0df42a42eb8e389cd5ffd66a9c7973f1cfdaf Mon Sep 17 00:00:00 2001 From: Christopher Monsanto Date: Sat, 2 May 2020 18:48:56 -0400 Subject: [PATCH] add compression options for spritesheets --- README.md | 1 + Tupfile.lua | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c4ae54e5..1c13464a 100644 --- a/README.md +++ b/README.md @@ -79,6 +79,7 @@ There are src-specific versions of these settings: - `CONFIG_TRAINERS_`: Compression options for `trainers/` only. - `CONFIG_DEX_`: Compression options for `dex/` only. - `CONFIG_MODELS_`: Compression options for `models/` only. +- `CONFIG_SPRITESHEET_`: Compression options for spritesheets only. For example, these settings reflect the compression settings for the files chaos uploaded in `src/`: ``` diff --git a/Tupfile.lua b/Tupfile.lua index f49118b4..4e89edf8 100644 --- a/Tupfile.lua +++ b/Tupfile.lua @@ -43,8 +43,8 @@ tup.rule( makecmd{ display="pokemonicons-pokeball-sheet", [[ -convert -background transparent -gravity center -extent 40x30 %f +append %o -]] +convert -background transparent -gravity center -extent 40x30 %f +append %o]], + compresspng{config="SPRITESHEET"} }, {"build/ps/pokemonicons-pokeball-sheet.png"} )