diff options
author | yenatch <yenatch@gmail.com> | 2017-06-24 00:45:31 -0400 |
---|---|---|
committer | yenatch <yenatch@gmail.com> | 2017-06-24 00:47:55 -0400 |
commit | 41ae3610f6c601e7803d6bcd049cf690f111f29a (patch) | |
tree | fd8ea5ab0a8e56c3d42c3d528d401da37a5964e4 | |
parent | f42e731d766e3f979f5f437d255c159d0dd3c485 (diff) |
pngs in gfx/fx
- gave up on wind.png
- add --remove-yflip
-rw-r--r-- | Makefile | 18 | ||||
-rw-r--r-- | gfx/fx/aeroblast.2bpp.lz.2f07c4ea (renamed from gfx/fx/aeroblast.2bpp.lz) | bin | 128 -> 128 bytes | |||
-rw-r--r-- | gfx/fx/aeroblast.png | bin | 0 -> 187 bytes | |||
-rw-r--r-- | gfx/fx/angels.2bpp.lz.b026d81e (renamed from gfx/fx/angels.2bpp.lz) | bin | 368 -> 368 bytes | |||
-rw-r--r-- | gfx/fx/angels.png | bin | 0 -> 363 bytes | |||
-rw-r--r-- | gfx/fx/beam.2bpp.lz.80b6d613 (renamed from gfx/fx/beam.2bpp.lz) | bin | 144 -> 144 bytes | |||
-rwxr-xr-x | gfx/fx/beam.png | bin | 0 -> 562 bytes | |||
-rw-r--r-- | gfx/fx/bubble.2bpp.lz.03b8ac99 (renamed from gfx/fx/bubble.2bpp.lz) | bin | 160 -> 160 bytes | |||
-rw-r--r-- | gfx/fx/bubble.png | bin | 0 -> 237 bytes | |||
-rw-r--r-- | gfx/fx/charge.2bpp.lz.95d3ea98 (renamed from gfx/fx/charge.2bpp.lz) | bin | 112 -> 112 bytes | |||
-rw-r--r-- | gfx/fx/charge.png | bin | 0 -> 188 bytes | |||
-rw-r--r-- | gfx/fx/cut.2bpp.lz.03d343ed (renamed from gfx/fx/cut.2bpp.lz) | bin | 96 -> 96 bytes | |||
-rw-r--r-- | gfx/fx/cut.png | bin | 0 -> 170 bytes | |||
-rw-r--r-- | gfx/fx/egg.2bpp.lz.41dd1a53 (renamed from gfx/fx/egg.2bpp.lz) | bin | 128 -> 128 bytes | |||
-rw-r--r-- | gfx/fx/egg.png | bin | 0 -> 200 bytes | |||
-rw-r--r-- | gfx/fx/explosion.2bpp.lz.55fc334f (renamed from gfx/fx/explosion.2bpp.lz) | bin | 96 -> 96 bytes | |||
-rw-r--r-- | gfx/fx/explosion.png | bin | 0 -> 157 bytes | |||
-rw-r--r-- | gfx/fx/fire.2bpp.lz.d7701cda (renamed from gfx/fx/fire.2bpp.lz) | bin | 96 -> 96 bytes | |||
-rw-r--r-- | gfx/fx/fire.png | bin | 0 -> 153 bytes | |||
-rw-r--r-- | gfx/fx/flower.2bpp.lz.1bc2e9d2 (renamed from gfx/fx/flower.2bpp.lz) | bin | 96 -> 96 bytes | |||
-rw-r--r-- | gfx/fx/flower.png | bin | 0 -> 149 bytes | |||
-rw-r--r-- | gfx/fx/globe.2bpp.lz.710dbb8e (renamed from gfx/fx/globe.2bpp.lz) | bin | 240 -> 240 bytes | |||
-rw-r--r-- | gfx/fx/globe.png | bin | 0 -> 292 bytes | |||
-rw-r--r-- | gfx/fx/haze.2bpp.lz.91424607 (renamed from gfx/fx/haze.2bpp.lz) | bin | 144 -> 144 bytes | |||
-rw-r--r-- | gfx/fx/haze.png | bin | 0 -> 173 bytes | |||
-rw-r--r-- | gfx/fx/hit.2bpp.lz.2b3c83f2 (renamed from gfx/fx/hit.2bpp.lz) | bin | 240 -> 240 bytes | |||
-rw-r--r-- | gfx/fx/hit.png | bin | 0 -> 306 bytes | |||
-rw-r--r-- | gfx/fx/horn.2bpp.lz.48908aae (renamed from gfx/fx/horn.2bpp.lz) | bin | 96 -> 96 bytes | |||
-rw-r--r-- | gfx/fx/horn.png | bin | 0 -> 179 bytes | |||
-rw-r--r-- | gfx/fx/ice.2bpp.lz.664d900f (renamed from gfx/fx/ice.2bpp.lz) | bin | 64 -> 64 bytes | |||
-rw-r--r-- | gfx/fx/ice.png | bin | 0 -> 137 bytes | |||
-rw-r--r-- | gfx/fx/lightning.2bpp.lz.a88fc131 (renamed from gfx/fx/lightning.2bpp.lz) | bin | 320 -> 320 bytes | |||
-rwxr-xr-x | gfx/fx/lightning.png | bin | 0 -> 820 bytes | |||
-rw-r--r-- | gfx/fx/misc.2bpp.lz.4b20c3d7 (renamed from gfx/fx/misc.2bpp.lz) | bin | 416 -> 416 bytes | |||
-rwxr-xr-x | gfx/fx/misc.png | bin | 0 -> 1082 bytes | |||
-rw-r--r-- | gfx/fx/noise.2bpp.lz.acb4a76e (renamed from gfx/fx/noise.2bpp.lz) | bin | 192 -> 192 bytes | |||
-rwxr-xr-x | gfx/fx/noise.png | bin | 0 -> 526 bytes | |||
-rw-r--r-- | gfx/fx/objects.2bpp.lz.83f812de (renamed from gfx/fx/objects.2bpp.lz) | bin | 224 -> 224 bytes | |||
-rwxr-xr-x | gfx/fx/objects.png | bin | 0 -> 705 bytes | |||
-rw-r--r-- | gfx/fx/plant.2bpp.lz.4a00c417 (renamed from gfx/fx/plant.2bpp.lz) | bin | 224 -> 224 bytes | |||
-rw-r--r-- | gfx/fx/plant.png | bin | 0 -> 293 bytes | |||
-rw-r--r-- | gfx/fx/poison.2bpp.lz.fc7dc9c1 (renamed from gfx/fx/poison.2bpp.lz) | bin | 112 -> 112 bytes | |||
-rwxr-xr-x | gfx/fx/poison.png | bin | 0 -> 166 bytes | |||
-rw-r--r-- | gfx/fx/pokeball.2bpp.lz.c58f7e01 (renamed from gfx/fx/pokeball.2bpp.lz) | bin | 80 -> 80 bytes | |||
-rwxr-xr-x | gfx/fx/pokeball.png | bin | 0 -> 388 bytes | |||
-rw-r--r-- | gfx/fx/powder.2bpp.lz.bfd566bb (renamed from gfx/fx/powder.2bpp.lz) | bin | 32 -> 32 bytes | |||
-rw-r--r-- | gfx/fx/powder.png | bin | 0 -> 100 bytes | |||
-rw-r--r-- | gfx/fx/psychic.2bpp.lz.d80f285c (renamed from gfx/fx/psychic.2bpp.lz) | bin | 112 -> 112 bytes | |||
-rw-r--r-- | gfx/fx/psychic.png | bin | 0 -> 175 bytes | |||
-rw-r--r-- | gfx/fx/reflect.2bpp.lz.9a9c822d (renamed from gfx/fx/reflect.2bpp.lz) | bin | 112 -> 112 bytes | |||
-rw-r--r-- | gfx/fx/reflect.png | bin | 0 -> 211 bytes | |||
-rw-r--r-- | gfx/fx/rocks.2bpp.lz.73d0153e (renamed from gfx/fx/rocks.2bpp.lz) | bin | 240 -> 240 bytes | |||
-rwxr-xr-x | gfx/fx/rocks.png | bin | 0 -> 669 bytes | |||
-rw-r--r-- | gfx/fx/rope.2bpp.lz.209d63dd (renamed from gfx/fx/rope.2bpp.lz) | bin | 192 -> 192 bytes | |||
-rw-r--r-- | gfx/fx/rope.png | bin | 0 -> 256 bytes | |||
-rw-r--r-- | gfx/fx/sand.2bpp.lz.c87c0eaa (renamed from gfx/fx/sand.2bpp.lz) | bin | 96 -> 96 bytes | |||
-rwxr-xr-x | gfx/fx/sand.png | bin | 0 -> 384 bytes | |||
-rw-r--r-- | gfx/fx/shapes.2bpp.lz.262d77f0 (renamed from gfx/fx/shapes.2bpp.lz) | bin | 160 -> 160 bytes | |||
-rw-r--r-- | gfx/fx/shapes.png | bin | 0 -> 237 bytes | |||
-rw-r--r-- | gfx/fx/shine.2bpp.lz.5fb79056 (renamed from gfx/fx/shine.2bpp.lz) | bin | 224 -> 224 bytes | |||
-rw-r--r-- | gfx/fx/shine.png | bin | 0 -> 273 bytes | |||
-rw-r--r-- | gfx/fx/skyattack.2bpp.lz.31738ab8 (renamed from gfx/fx/skyattack.2bpp.lz) | bin | 352 -> 352 bytes | |||
-rw-r--r-- | gfx/fx/skyattack.png | bin | 0 -> 393 bytes | |||
-rw-r--r-- | gfx/fx/smoke.2bpp.lz.aa05905e (renamed from gfx/fx/smoke.2bpp.lz) | bin | 144 -> 144 bytes | |||
-rw-r--r-- | gfx/fx/smoke.png | bin | 0 -> 191 bytes | |||
-rw-r--r-- | gfx/fx/speed.2bpp.lz.1732b364 (renamed from gfx/fx/speed.2bpp.lz) | bin | 80 -> 80 bytes | |||
-rw-r--r-- | gfx/fx/speed.png | bin | 0 -> 136 bytes | |||
-rw-r--r-- | gfx/fx/status.2bpp.lz.0c0aa13e (renamed from gfx/fx/status.2bpp.lz) | bin | 288 -> 288 bytes | |||
-rw-r--r-- | gfx/fx/status.png | bin | 0 -> 364 bytes | |||
-rw-r--r-- | gfx/fx/water.2bpp.lz.7b52ed12 (renamed from gfx/fx/water.2bpp.lz) | bin | 208 -> 208 bytes | |||
-rw-r--r-- | gfx/fx/water.png | bin | 0 -> 277 bytes | |||
-rw-r--r-- | gfx/fx/wave.2bpp.lz.bee99402 (renamed from gfx/fx/wave.2bpp.lz) | bin | 160 -> 160 bytes | |||
-rw-r--r-- | gfx/fx/wave.png | bin | 0 -> 205 bytes | |||
-rw-r--r-- | gfx/fx/web.2bpp.lz.80e3d480 (renamed from gfx/fx/web.2bpp.lz) | bin | 128 -> 128 bytes | |||
-rw-r--r-- | gfx/fx/web.png | bin | 0 -> 191 bytes | |||
-rw-r--r-- | gfx/fx/whip.2bpp.lz.d80d8d6e (renamed from gfx/fx/whip.2bpp.lz) | bin | 128 -> 128 bytes | |||
-rw-r--r-- | gfx/fx/whip.png | bin | 0 -> 210 bytes | |||
-rw-r--r-- | gfx/fx/wind.2bpp.lz.5a785180 (renamed from gfx/fx/wind.2bpp.lz) | bin | 192 -> 192 bytes | |||
-rw-r--r-- | gfx/fx/wind.png | bin | 0 -> 286 bytes | |||
-rw-r--r-- | tools/gfx.c | 26 |
80 files changed, 33 insertions, 11 deletions
@@ -135,6 +135,24 @@ gfx/slots_3.2bpp: tools/gfx += --interleave --width=24 --remove-duplicates --kee gfx/slots_3a.2bpp: tools/gfx += --interleave --width=16 gfx/slots_3b.2bpp: tools/gfx += --interleave --width=24 --remove-duplicates --keep-whitespace --remove-xflip +gfx/fx/angels.2bpp: tools/gfx += --trim-whitespace +gfx/fx/beam.2bpp: tools/gfx += --remove-xflip --remove-yflip --remove-whitespace +gfx/fx/bubble.2bpp: tools/gfx += --trim-whitespace +gfx/fx/charge.2bpp: tools/gfx += --trim-whitespace +gfx/fx/egg.2bpp: tools/gfx += --remove-whitespace +gfx/fx/explosion.2bpp: tools/gfx += --remove-whitespace +gfx/fx/hit.2bpp: tools/gfx += --remove-whitespace +gfx/fx/horn.2bpp: tools/gfx += --remove-whitespace +gfx/fx/lightning.2bpp: tools/gfx += --remove-whitespace +gfx/fx/misc.2bpp: tools/gfx += --remove-duplicates --remove-xflip +gfx/fx/noise.2bpp: tools/gfx += --remove-whitespace +gfx/fx/objects.2bpp: tools/gfx += --remove-whitespace --remove-xflip +gfx/fx/pokeball.2bpp: tools/gfx += --remove-xflip --keep-whitespace +gfx/fx/reflect.2bpp: tools/gfx += --remove-whitespace +gfx/fx/rocks.2bpp: tools/gfx += --remove-whitespace +gfx/fx/skyattack.2bpp: tools/gfx += --remove-whitespace +gfx/fx/status.2bpp: tools/gfx += --remove-whitespace + %.bin: ; %.blk: ; diff --git a/gfx/fx/aeroblast.2bpp.lz b/gfx/fx/aeroblast.2bpp.lz.2f07c4ea Binary files differindex 5e203cb63..5e203cb63 100644 --- a/gfx/fx/aeroblast.2bpp.lz +++ b/gfx/fx/aeroblast.2bpp.lz.2f07c4ea diff --git a/gfx/fx/aeroblast.png b/gfx/fx/aeroblast.png Binary files differnew file mode 100644 index 000000000..1fdc07c2f --- /dev/null +++ b/gfx/fx/aeroblast.png diff --git a/gfx/fx/angels.2bpp.lz b/gfx/fx/angels.2bpp.lz.b026d81e Binary files differindex 61d89d224..61d89d224 100644 --- a/gfx/fx/angels.2bpp.lz +++ b/gfx/fx/angels.2bpp.lz.b026d81e diff --git a/gfx/fx/angels.png b/gfx/fx/angels.png Binary files differnew file mode 100644 index 000000000..ef38c61d2 --- /dev/null +++ b/gfx/fx/angels.png diff --git a/gfx/fx/beam.2bpp.lz b/gfx/fx/beam.2bpp.lz.80b6d613 Binary files differindex 1ce9ab82c..1ce9ab82c 100644 --- a/gfx/fx/beam.2bpp.lz +++ b/gfx/fx/beam.2bpp.lz.80b6d613 diff --git a/gfx/fx/beam.png b/gfx/fx/beam.png Binary files differnew file mode 100755 index 000000000..32a3b1967 --- /dev/null +++ b/gfx/fx/beam.png diff --git a/gfx/fx/bubble.2bpp.lz b/gfx/fx/bubble.2bpp.lz.03b8ac99 Binary files differindex 3d546191a..3d546191a 100644 --- a/gfx/fx/bubble.2bpp.lz +++ b/gfx/fx/bubble.2bpp.lz.03b8ac99 diff --git a/gfx/fx/bubble.png b/gfx/fx/bubble.png Binary files differnew file mode 100644 index 000000000..b6febb0a8 --- /dev/null +++ b/gfx/fx/bubble.png diff --git a/gfx/fx/charge.2bpp.lz b/gfx/fx/charge.2bpp.lz.95d3ea98 Binary files differindex 32c82243c..32c82243c 100644 --- a/gfx/fx/charge.2bpp.lz +++ b/gfx/fx/charge.2bpp.lz.95d3ea98 diff --git a/gfx/fx/charge.png b/gfx/fx/charge.png Binary files differnew file mode 100644 index 000000000..90cb72f9f --- /dev/null +++ b/gfx/fx/charge.png diff --git a/gfx/fx/cut.2bpp.lz b/gfx/fx/cut.2bpp.lz.03d343ed Binary files differindex 740a48799..740a48799 100644 --- a/gfx/fx/cut.2bpp.lz +++ b/gfx/fx/cut.2bpp.lz.03d343ed diff --git a/gfx/fx/cut.png b/gfx/fx/cut.png Binary files differnew file mode 100644 index 000000000..e227ad413 --- /dev/null +++ b/gfx/fx/cut.png diff --git a/gfx/fx/egg.2bpp.lz b/gfx/fx/egg.2bpp.lz.41dd1a53 Binary files differindex fb55f2edc..fb55f2edc 100644 --- a/gfx/fx/egg.2bpp.lz +++ b/gfx/fx/egg.2bpp.lz.41dd1a53 diff --git a/gfx/fx/egg.png b/gfx/fx/egg.png Binary files differnew file mode 100644 index 000000000..38aab505d --- /dev/null +++ b/gfx/fx/egg.png diff --git a/gfx/fx/explosion.2bpp.lz b/gfx/fx/explosion.2bpp.lz.55fc334f Binary files differindex 4303302a1..4303302a1 100644 --- a/gfx/fx/explosion.2bpp.lz +++ b/gfx/fx/explosion.2bpp.lz.55fc334f diff --git a/gfx/fx/explosion.png b/gfx/fx/explosion.png Binary files differnew file mode 100644 index 000000000..0af9f1a0d --- /dev/null +++ b/gfx/fx/explosion.png diff --git a/gfx/fx/fire.2bpp.lz b/gfx/fx/fire.2bpp.lz.d7701cda Binary files differindex e15e9f9bb..e15e9f9bb 100644 --- a/gfx/fx/fire.2bpp.lz +++ b/gfx/fx/fire.2bpp.lz.d7701cda diff --git a/gfx/fx/fire.png b/gfx/fx/fire.png Binary files differnew file mode 100644 index 000000000..19f01141b --- /dev/null +++ b/gfx/fx/fire.png diff --git a/gfx/fx/flower.2bpp.lz b/gfx/fx/flower.2bpp.lz.1bc2e9d2 Binary files differindex ef628afb4..ef628afb4 100644 --- a/gfx/fx/flower.2bpp.lz +++ b/gfx/fx/flower.2bpp.lz.1bc2e9d2 diff --git a/gfx/fx/flower.png b/gfx/fx/flower.png Binary files differnew file mode 100644 index 000000000..61b4f58ce --- /dev/null +++ b/gfx/fx/flower.png diff --git a/gfx/fx/globe.2bpp.lz b/gfx/fx/globe.2bpp.lz.710dbb8e Binary files differindex 99fa15c6f..99fa15c6f 100644 --- a/gfx/fx/globe.2bpp.lz +++ b/gfx/fx/globe.2bpp.lz.710dbb8e diff --git a/gfx/fx/globe.png b/gfx/fx/globe.png Binary files differnew file mode 100644 index 000000000..8d3a35683 --- /dev/null +++ b/gfx/fx/globe.png diff --git a/gfx/fx/haze.2bpp.lz b/gfx/fx/haze.2bpp.lz.91424607 Binary files differindex e0cdc644c..e0cdc644c 100644 --- a/gfx/fx/haze.2bpp.lz +++ b/gfx/fx/haze.2bpp.lz.91424607 diff --git a/gfx/fx/haze.png b/gfx/fx/haze.png Binary files differnew file mode 100644 index 000000000..8a870ba98 --- /dev/null +++ b/gfx/fx/haze.png diff --git a/gfx/fx/hit.2bpp.lz b/gfx/fx/hit.2bpp.lz.2b3c83f2 Binary files differindex 5d9ffbe5d..5d9ffbe5d 100644 --- a/gfx/fx/hit.2bpp.lz +++ b/gfx/fx/hit.2bpp.lz.2b3c83f2 diff --git a/gfx/fx/hit.png b/gfx/fx/hit.png Binary files differnew file mode 100644 index 000000000..228066331 --- /dev/null +++ b/gfx/fx/hit.png diff --git a/gfx/fx/horn.2bpp.lz b/gfx/fx/horn.2bpp.lz.48908aae Binary files differindex a92f74796..a92f74796 100644 --- a/gfx/fx/horn.2bpp.lz +++ b/gfx/fx/horn.2bpp.lz.48908aae diff --git a/gfx/fx/horn.png b/gfx/fx/horn.png Binary files differnew file mode 100644 index 000000000..56e8ca241 --- /dev/null +++ b/gfx/fx/horn.png diff --git a/gfx/fx/ice.2bpp.lz b/gfx/fx/ice.2bpp.lz.664d900f Binary files differindex 3d059700b..3d059700b 100644 --- a/gfx/fx/ice.2bpp.lz +++ b/gfx/fx/ice.2bpp.lz.664d900f diff --git a/gfx/fx/ice.png b/gfx/fx/ice.png Binary files differnew file mode 100644 index 000000000..62a67641e --- /dev/null +++ b/gfx/fx/ice.png diff --git a/gfx/fx/lightning.2bpp.lz b/gfx/fx/lightning.2bpp.lz.a88fc131 Binary files differindex 81de5850f..81de5850f 100644 --- a/gfx/fx/lightning.2bpp.lz +++ b/gfx/fx/lightning.2bpp.lz.a88fc131 diff --git a/gfx/fx/lightning.png b/gfx/fx/lightning.png Binary files differnew file mode 100755 index 000000000..6606fad12 --- /dev/null +++ b/gfx/fx/lightning.png diff --git a/gfx/fx/misc.2bpp.lz b/gfx/fx/misc.2bpp.lz.4b20c3d7 Binary files differindex d0c5f0dfc..d0c5f0dfc 100644 --- a/gfx/fx/misc.2bpp.lz +++ b/gfx/fx/misc.2bpp.lz.4b20c3d7 diff --git a/gfx/fx/misc.png b/gfx/fx/misc.png Binary files differnew file mode 100755 index 000000000..d7e67508e --- /dev/null +++ b/gfx/fx/misc.png diff --git a/gfx/fx/noise.2bpp.lz b/gfx/fx/noise.2bpp.lz.acb4a76e Binary files differindex e195da453..e195da453 100644 --- a/gfx/fx/noise.2bpp.lz +++ b/gfx/fx/noise.2bpp.lz.acb4a76e diff --git a/gfx/fx/noise.png b/gfx/fx/noise.png Binary files differnew file mode 100755 index 000000000..17540a5e8 --- /dev/null +++ b/gfx/fx/noise.png diff --git a/gfx/fx/objects.2bpp.lz b/gfx/fx/objects.2bpp.lz.83f812de Binary files differindex 1a52d6350..1a52d6350 100644 --- a/gfx/fx/objects.2bpp.lz +++ b/gfx/fx/objects.2bpp.lz.83f812de diff --git a/gfx/fx/objects.png b/gfx/fx/objects.png Binary files differnew file mode 100755 index 000000000..91ea435b8 --- /dev/null +++ b/gfx/fx/objects.png diff --git a/gfx/fx/plant.2bpp.lz b/gfx/fx/plant.2bpp.lz.4a00c417 Binary files differindex 589fc48b6..589fc48b6 100644 --- a/gfx/fx/plant.2bpp.lz +++ b/gfx/fx/plant.2bpp.lz.4a00c417 diff --git a/gfx/fx/plant.png b/gfx/fx/plant.png Binary files differnew file mode 100644 index 000000000..ec1125054 --- /dev/null +++ b/gfx/fx/plant.png diff --git a/gfx/fx/poison.2bpp.lz b/gfx/fx/poison.2bpp.lz.fc7dc9c1 Binary files differindex df2cbe604..df2cbe604 100644 --- a/gfx/fx/poison.2bpp.lz +++ b/gfx/fx/poison.2bpp.lz.fc7dc9c1 diff --git a/gfx/fx/poison.png b/gfx/fx/poison.png Binary files differnew file mode 100755 index 000000000..ebbbc52be --- /dev/null +++ b/gfx/fx/poison.png diff --git a/gfx/fx/pokeball.2bpp.lz b/gfx/fx/pokeball.2bpp.lz.c58f7e01 Binary files differindex e09b082db..e09b082db 100644 --- a/gfx/fx/pokeball.2bpp.lz +++ b/gfx/fx/pokeball.2bpp.lz.c58f7e01 diff --git a/gfx/fx/pokeball.png b/gfx/fx/pokeball.png Binary files differnew file mode 100755 index 000000000..47edf2190 --- /dev/null +++ b/gfx/fx/pokeball.png diff --git a/gfx/fx/powder.2bpp.lz b/gfx/fx/powder.2bpp.lz.bfd566bb Binary files differindex 375d0bf9c..375d0bf9c 100644 --- a/gfx/fx/powder.2bpp.lz +++ b/gfx/fx/powder.2bpp.lz.bfd566bb diff --git a/gfx/fx/powder.png b/gfx/fx/powder.png Binary files differnew file mode 100644 index 000000000..b2cb4d459 --- /dev/null +++ b/gfx/fx/powder.png diff --git a/gfx/fx/psychic.2bpp.lz b/gfx/fx/psychic.2bpp.lz.d80f285c Binary files differindex d6402dd3d..d6402dd3d 100644 --- a/gfx/fx/psychic.2bpp.lz +++ b/gfx/fx/psychic.2bpp.lz.d80f285c diff --git a/gfx/fx/psychic.png b/gfx/fx/psychic.png Binary files differnew file mode 100644 index 000000000..a6d22db2f --- /dev/null +++ b/gfx/fx/psychic.png diff --git a/gfx/fx/reflect.2bpp.lz b/gfx/fx/reflect.2bpp.lz.9a9c822d Binary files differindex a563de1a8..a563de1a8 100644 --- a/gfx/fx/reflect.2bpp.lz +++ b/gfx/fx/reflect.2bpp.lz.9a9c822d diff --git a/gfx/fx/reflect.png b/gfx/fx/reflect.png Binary files differnew file mode 100644 index 000000000..48fbd7d0d --- /dev/null +++ b/gfx/fx/reflect.png diff --git a/gfx/fx/rocks.2bpp.lz b/gfx/fx/rocks.2bpp.lz.73d0153e Binary files differindex d5481ea6e..d5481ea6e 100644 --- a/gfx/fx/rocks.2bpp.lz +++ b/gfx/fx/rocks.2bpp.lz.73d0153e diff --git a/gfx/fx/rocks.png b/gfx/fx/rocks.png Binary files differnew file mode 100755 index 000000000..d7fe76b2f --- /dev/null +++ b/gfx/fx/rocks.png diff --git a/gfx/fx/rope.2bpp.lz b/gfx/fx/rope.2bpp.lz.209d63dd Binary files differindex f7d6a480f..f7d6a480f 100644 --- a/gfx/fx/rope.2bpp.lz +++ b/gfx/fx/rope.2bpp.lz.209d63dd diff --git a/gfx/fx/rope.png b/gfx/fx/rope.png Binary files differnew file mode 100644 index 000000000..a12553c7a --- /dev/null +++ b/gfx/fx/rope.png diff --git a/gfx/fx/sand.2bpp.lz b/gfx/fx/sand.2bpp.lz.c87c0eaa Binary files differindex 3508a1f58..3508a1f58 100644 --- a/gfx/fx/sand.2bpp.lz +++ b/gfx/fx/sand.2bpp.lz.c87c0eaa diff --git a/gfx/fx/sand.png b/gfx/fx/sand.png Binary files differnew file mode 100755 index 000000000..a54db235d --- /dev/null +++ b/gfx/fx/sand.png diff --git a/gfx/fx/shapes.2bpp.lz b/gfx/fx/shapes.2bpp.lz.262d77f0 Binary files differindex d7d48020f..d7d48020f 100644 --- a/gfx/fx/shapes.2bpp.lz +++ b/gfx/fx/shapes.2bpp.lz.262d77f0 diff --git a/gfx/fx/shapes.png b/gfx/fx/shapes.png Binary files differnew file mode 100644 index 000000000..b99fc601a --- /dev/null +++ b/gfx/fx/shapes.png diff --git a/gfx/fx/shine.2bpp.lz b/gfx/fx/shine.2bpp.lz.5fb79056 Binary files differindex 3e47170b1..3e47170b1 100644 --- a/gfx/fx/shine.2bpp.lz +++ b/gfx/fx/shine.2bpp.lz.5fb79056 diff --git a/gfx/fx/shine.png b/gfx/fx/shine.png Binary files differnew file mode 100644 index 000000000..1b7e9834b --- /dev/null +++ b/gfx/fx/shine.png diff --git a/gfx/fx/skyattack.2bpp.lz b/gfx/fx/skyattack.2bpp.lz.31738ab8 Binary files differindex e0412dd81..e0412dd81 100644 --- a/gfx/fx/skyattack.2bpp.lz +++ b/gfx/fx/skyattack.2bpp.lz.31738ab8 diff --git a/gfx/fx/skyattack.png b/gfx/fx/skyattack.png Binary files differnew file mode 100644 index 000000000..e731c691c --- /dev/null +++ b/gfx/fx/skyattack.png diff --git a/gfx/fx/smoke.2bpp.lz b/gfx/fx/smoke.2bpp.lz.aa05905e Binary files differindex bf26fed2b..bf26fed2b 100644 --- a/gfx/fx/smoke.2bpp.lz +++ b/gfx/fx/smoke.2bpp.lz.aa05905e diff --git a/gfx/fx/smoke.png b/gfx/fx/smoke.png Binary files differnew file mode 100644 index 000000000..1b09874ba --- /dev/null +++ b/gfx/fx/smoke.png diff --git a/gfx/fx/speed.2bpp.lz b/gfx/fx/speed.2bpp.lz.1732b364 Binary files differindex 5d09f9a6a..5d09f9a6a 100644 --- a/gfx/fx/speed.2bpp.lz +++ b/gfx/fx/speed.2bpp.lz.1732b364 diff --git a/gfx/fx/speed.png b/gfx/fx/speed.png Binary files differnew file mode 100644 index 000000000..e219b38c9 --- /dev/null +++ b/gfx/fx/speed.png diff --git a/gfx/fx/status.2bpp.lz b/gfx/fx/status.2bpp.lz.0c0aa13e Binary files differindex e5ce7df8a..e5ce7df8a 100644 --- a/gfx/fx/status.2bpp.lz +++ b/gfx/fx/status.2bpp.lz.0c0aa13e diff --git a/gfx/fx/status.png b/gfx/fx/status.png Binary files differnew file mode 100644 index 000000000..cb8527963 --- /dev/null +++ b/gfx/fx/status.png diff --git a/gfx/fx/water.2bpp.lz b/gfx/fx/water.2bpp.lz.7b52ed12 Binary files differindex 6a81bbb65..6a81bbb65 100644 --- a/gfx/fx/water.2bpp.lz +++ b/gfx/fx/water.2bpp.lz.7b52ed12 diff --git a/gfx/fx/water.png b/gfx/fx/water.png Binary files differnew file mode 100644 index 000000000..4e3c3b719 --- /dev/null +++ b/gfx/fx/water.png diff --git a/gfx/fx/wave.2bpp.lz b/gfx/fx/wave.2bpp.lz.bee99402 Binary files differindex d94a5cb35..d94a5cb35 100644 --- a/gfx/fx/wave.2bpp.lz +++ b/gfx/fx/wave.2bpp.lz.bee99402 diff --git a/gfx/fx/wave.png b/gfx/fx/wave.png Binary files differnew file mode 100644 index 000000000..55d4faa5f --- /dev/null +++ b/gfx/fx/wave.png diff --git a/gfx/fx/web.2bpp.lz b/gfx/fx/web.2bpp.lz.80e3d480 Binary files differindex 84b4018e5..84b4018e5 100644 --- a/gfx/fx/web.2bpp.lz +++ b/gfx/fx/web.2bpp.lz.80e3d480 diff --git a/gfx/fx/web.png b/gfx/fx/web.png Binary files differnew file mode 100644 index 000000000..2aeffef0e --- /dev/null +++ b/gfx/fx/web.png diff --git a/gfx/fx/whip.2bpp.lz b/gfx/fx/whip.2bpp.lz.d80d8d6e Binary files differindex da62ba918..da62ba918 100644 --- a/gfx/fx/whip.2bpp.lz +++ b/gfx/fx/whip.2bpp.lz.d80d8d6e diff --git a/gfx/fx/whip.png b/gfx/fx/whip.png Binary files differnew file mode 100644 index 000000000..92d7ded6f --- /dev/null +++ b/gfx/fx/whip.png diff --git a/gfx/fx/wind.2bpp.lz b/gfx/fx/wind.2bpp.lz.5a785180 Binary files differindex 9c2769b83..9c2769b83 100644 --- a/gfx/fx/wind.2bpp.lz +++ b/gfx/fx/wind.2bpp.lz.5a785180 diff --git a/gfx/fx/wind.png b/gfx/fx/wind.png Binary files differnew file mode 100644 index 000000000..b02031392 --- /dev/null +++ b/gfx/fx/wind.png diff --git a/tools/gfx.c b/tools/gfx.c index 8283d9e73..25de45dbe 100644 --- a/tools/gfx.c +++ b/tools/gfx.c @@ -7,7 +7,7 @@ #include "common.h" static void usage(void) { - fprintf(stderr, "Usage: gfx [--trim-whitespace] [--remove-whitespace] [--interleave] [--remove-duplicates [--keep-whitespace]] [--remove-xflip] [-w width] [-d depth] [-h] [-o outfile] infile\n"); + fprintf(stderr, "Usage: gfx [--trim-whitespace] [--remove-whitespace] [--interleave] [--remove-duplicates [--keep-whitespace]] [--remove-xflip] [--remove-yflip] [-w width] [-d depth] [-h] [-o outfile] infile\n"); } static void error(char *message) { @@ -26,6 +26,7 @@ struct Options { int remove_duplicates; int keep_whitespace; int remove_xflip; + int remove_yflip; }; struct Options Options = { @@ -40,6 +41,7 @@ void get_args(int argc, char *argv[]) { {"remove-duplicates", no_argument, &Options.remove_duplicates, 1}, {"keep-whitespace", no_argument, &Options.keep_whitespace, 1}, {"remove-xflip", no_argument, &Options.remove_xflip, 1}, + {"remove-yflip", no_argument, &Options.remove_yflip, 1}, {"width", required_argument, 0, 'w'}, {"depth", required_argument, 0, 'd'}, {"help", no_argument, 0, 'h'}, @@ -157,12 +159,12 @@ bool flip_exists(uint8_t *tile, uint8_t *tiles, int tile_size, int num_tiles, bo for (int i = 0; i < tile_size; i++) { int byte = i; if (yflip) { - byte = tile_size - 1 - i; + byte = tile_size - 1 - (i ^ 1); if (Options.interleave && i < half_size) { - byte = half_size - 1 - i; + byte = half_size - 1 - (i ^ 1); } } - if (flip) { + if (xflip) { for (int bit = 0; bit < 8; bit++) { flip[byte] |= ((tile[i] >> bit) & 1) << (7 - bit); } @@ -176,16 +178,12 @@ bool flip_exists(uint8_t *tile, uint8_t *tiles, int tile_size, int num_tiles, bo return false; } -bool xflip_exists(uint8_t *tile, uint8_t *tiles, int tile_size, int num_tiles) { - return flip_exists(tile, tiles, tile_size, num_tiles, true, false); -} - -void remove_xflip(struct Graphic *graphic) { +void remove_flip(struct Graphic *graphic, bool xflip, bool yflip) { int tile_size = Options.depth * 8; if (Options.interleave) tile_size *= 2; int num_tiles = 0; for (int i = 0, j = 0; i < graphic->size && j < graphic->size; i += tile_size, j += tile_size) { - while (xflip_exists(&graphic->data[j], graphic->data, tile_size, num_tiles)) { + while (flip_exists(&graphic->data[j], graphic->data, tile_size, num_tiles, xflip, yflip)) { if (Options.keep_whitespace && is_whitespace(&graphic->data[j], tile_size)) { break; } @@ -253,7 +251,13 @@ int main(int argc, char *argv[]) { remove_duplicates(&graphic); } if (Options.remove_xflip) { - remove_xflip(&graphic); + remove_flip(&graphic, true, false); + } + if (Options.remove_yflip) { + remove_flip(&graphic, false, true); + } + if (Options.remove_xflip && Options.remove_yflip) { + remove_flip(&graphic, true, true); } if (Options.remove_whitespace) { remove_whitespace(&graphic); |