summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2017-06-24 00:45:31 -0400
committeryenatch <yenatch@gmail.com>2017-06-24 00:47:55 -0400
commit41ae3610f6c601e7803d6bcd049cf690f111f29a (patch)
treefd8ea5ab0a8e56c3d42c3d528d401da37a5964e4
parentf42e731d766e3f979f5f437d255c159d0dd3c485 (diff)
pngs in gfx/fx
- gave up on wind.png - add --remove-yflip
-rw-r--r--Makefile18
-rw-r--r--gfx/fx/aeroblast.2bpp.lz.2f07c4ea (renamed from gfx/fx/aeroblast.2bpp.lz)bin128 -> 128 bytes
-rw-r--r--gfx/fx/aeroblast.pngbin0 -> 187 bytes
-rw-r--r--gfx/fx/angels.2bpp.lz.b026d81e (renamed from gfx/fx/angels.2bpp.lz)bin368 -> 368 bytes
-rw-r--r--gfx/fx/angels.pngbin0 -> 363 bytes
-rw-r--r--gfx/fx/beam.2bpp.lz.80b6d613 (renamed from gfx/fx/beam.2bpp.lz)bin144 -> 144 bytes
-rwxr-xr-xgfx/fx/beam.pngbin0 -> 562 bytes
-rw-r--r--gfx/fx/bubble.2bpp.lz.03b8ac99 (renamed from gfx/fx/bubble.2bpp.lz)bin160 -> 160 bytes
-rw-r--r--gfx/fx/bubble.pngbin0 -> 237 bytes
-rw-r--r--gfx/fx/charge.2bpp.lz.95d3ea98 (renamed from gfx/fx/charge.2bpp.lz)bin112 -> 112 bytes
-rw-r--r--gfx/fx/charge.pngbin0 -> 188 bytes
-rw-r--r--gfx/fx/cut.2bpp.lz.03d343ed (renamed from gfx/fx/cut.2bpp.lz)bin96 -> 96 bytes
-rw-r--r--gfx/fx/cut.pngbin0 -> 170 bytes
-rw-r--r--gfx/fx/egg.2bpp.lz.41dd1a53 (renamed from gfx/fx/egg.2bpp.lz)bin128 -> 128 bytes
-rw-r--r--gfx/fx/egg.pngbin0 -> 200 bytes
-rw-r--r--gfx/fx/explosion.2bpp.lz.55fc334f (renamed from gfx/fx/explosion.2bpp.lz)bin96 -> 96 bytes
-rw-r--r--gfx/fx/explosion.pngbin0 -> 157 bytes
-rw-r--r--gfx/fx/fire.2bpp.lz.d7701cda (renamed from gfx/fx/fire.2bpp.lz)bin96 -> 96 bytes
-rw-r--r--gfx/fx/fire.pngbin0 -> 153 bytes
-rw-r--r--gfx/fx/flower.2bpp.lz.1bc2e9d2 (renamed from gfx/fx/flower.2bpp.lz)bin96 -> 96 bytes
-rw-r--r--gfx/fx/flower.pngbin0 -> 149 bytes
-rw-r--r--gfx/fx/globe.2bpp.lz.710dbb8e (renamed from gfx/fx/globe.2bpp.lz)bin240 -> 240 bytes
-rw-r--r--gfx/fx/globe.pngbin0 -> 292 bytes
-rw-r--r--gfx/fx/haze.2bpp.lz.91424607 (renamed from gfx/fx/haze.2bpp.lz)bin144 -> 144 bytes
-rw-r--r--gfx/fx/haze.pngbin0 -> 173 bytes
-rw-r--r--gfx/fx/hit.2bpp.lz.2b3c83f2 (renamed from gfx/fx/hit.2bpp.lz)bin240 -> 240 bytes
-rw-r--r--gfx/fx/hit.pngbin0 -> 306 bytes
-rw-r--r--gfx/fx/horn.2bpp.lz.48908aae (renamed from gfx/fx/horn.2bpp.lz)bin96 -> 96 bytes
-rw-r--r--gfx/fx/horn.pngbin0 -> 179 bytes
-rw-r--r--gfx/fx/ice.2bpp.lz.664d900f (renamed from gfx/fx/ice.2bpp.lz)bin64 -> 64 bytes
-rw-r--r--gfx/fx/ice.pngbin0 -> 137 bytes
-rw-r--r--gfx/fx/lightning.2bpp.lz.a88fc131 (renamed from gfx/fx/lightning.2bpp.lz)bin320 -> 320 bytes
-rwxr-xr-xgfx/fx/lightning.pngbin0 -> 820 bytes
-rw-r--r--gfx/fx/misc.2bpp.lz.4b20c3d7 (renamed from gfx/fx/misc.2bpp.lz)bin416 -> 416 bytes
-rwxr-xr-xgfx/fx/misc.pngbin0 -> 1082 bytes
-rw-r--r--gfx/fx/noise.2bpp.lz.acb4a76e (renamed from gfx/fx/noise.2bpp.lz)bin192 -> 192 bytes
-rwxr-xr-xgfx/fx/noise.pngbin0 -> 526 bytes
-rw-r--r--gfx/fx/objects.2bpp.lz.83f812de (renamed from gfx/fx/objects.2bpp.lz)bin224 -> 224 bytes
-rwxr-xr-xgfx/fx/objects.pngbin0 -> 705 bytes
-rw-r--r--gfx/fx/plant.2bpp.lz.4a00c417 (renamed from gfx/fx/plant.2bpp.lz)bin224 -> 224 bytes
-rw-r--r--gfx/fx/plant.pngbin0 -> 293 bytes
-rw-r--r--gfx/fx/poison.2bpp.lz.fc7dc9c1 (renamed from gfx/fx/poison.2bpp.lz)bin112 -> 112 bytes
-rwxr-xr-xgfx/fx/poison.pngbin0 -> 166 bytes
-rw-r--r--gfx/fx/pokeball.2bpp.lz.c58f7e01 (renamed from gfx/fx/pokeball.2bpp.lz)bin80 -> 80 bytes
-rwxr-xr-xgfx/fx/pokeball.pngbin0 -> 388 bytes
-rw-r--r--gfx/fx/powder.2bpp.lz.bfd566bb (renamed from gfx/fx/powder.2bpp.lz)bin32 -> 32 bytes
-rw-r--r--gfx/fx/powder.pngbin0 -> 100 bytes
-rw-r--r--gfx/fx/psychic.2bpp.lz.d80f285c (renamed from gfx/fx/psychic.2bpp.lz)bin112 -> 112 bytes
-rw-r--r--gfx/fx/psychic.pngbin0 -> 175 bytes
-rw-r--r--gfx/fx/reflect.2bpp.lz.9a9c822d (renamed from gfx/fx/reflect.2bpp.lz)bin112 -> 112 bytes
-rw-r--r--gfx/fx/reflect.pngbin0 -> 211 bytes
-rw-r--r--gfx/fx/rocks.2bpp.lz.73d0153e (renamed from gfx/fx/rocks.2bpp.lz)bin240 -> 240 bytes
-rwxr-xr-xgfx/fx/rocks.pngbin0 -> 669 bytes
-rw-r--r--gfx/fx/rope.2bpp.lz.209d63dd (renamed from gfx/fx/rope.2bpp.lz)bin192 -> 192 bytes
-rw-r--r--gfx/fx/rope.pngbin0 -> 256 bytes
-rw-r--r--gfx/fx/sand.2bpp.lz.c87c0eaa (renamed from gfx/fx/sand.2bpp.lz)bin96 -> 96 bytes
-rwxr-xr-xgfx/fx/sand.pngbin0 -> 384 bytes
-rw-r--r--gfx/fx/shapes.2bpp.lz.262d77f0 (renamed from gfx/fx/shapes.2bpp.lz)bin160 -> 160 bytes
-rw-r--r--gfx/fx/shapes.pngbin0 -> 237 bytes
-rw-r--r--gfx/fx/shine.2bpp.lz.5fb79056 (renamed from gfx/fx/shine.2bpp.lz)bin224 -> 224 bytes
-rw-r--r--gfx/fx/shine.pngbin0 -> 273 bytes
-rw-r--r--gfx/fx/skyattack.2bpp.lz.31738ab8 (renamed from gfx/fx/skyattack.2bpp.lz)bin352 -> 352 bytes
-rw-r--r--gfx/fx/skyattack.pngbin0 -> 393 bytes
-rw-r--r--gfx/fx/smoke.2bpp.lz.aa05905e (renamed from gfx/fx/smoke.2bpp.lz)bin144 -> 144 bytes
-rw-r--r--gfx/fx/smoke.pngbin0 -> 191 bytes
-rw-r--r--gfx/fx/speed.2bpp.lz.1732b364 (renamed from gfx/fx/speed.2bpp.lz)bin80 -> 80 bytes
-rw-r--r--gfx/fx/speed.pngbin0 -> 136 bytes
-rw-r--r--gfx/fx/status.2bpp.lz.0c0aa13e (renamed from gfx/fx/status.2bpp.lz)bin288 -> 288 bytes
-rw-r--r--gfx/fx/status.pngbin0 -> 364 bytes
-rw-r--r--gfx/fx/water.2bpp.lz.7b52ed12 (renamed from gfx/fx/water.2bpp.lz)bin208 -> 208 bytes
-rw-r--r--gfx/fx/water.pngbin0 -> 277 bytes
-rw-r--r--gfx/fx/wave.2bpp.lz.bee99402 (renamed from gfx/fx/wave.2bpp.lz)bin160 -> 160 bytes
-rw-r--r--gfx/fx/wave.pngbin0 -> 205 bytes
-rw-r--r--gfx/fx/web.2bpp.lz.80e3d480 (renamed from gfx/fx/web.2bpp.lz)bin128 -> 128 bytes
-rw-r--r--gfx/fx/web.pngbin0 -> 191 bytes
-rw-r--r--gfx/fx/whip.2bpp.lz.d80d8d6e (renamed from gfx/fx/whip.2bpp.lz)bin128 -> 128 bytes
-rw-r--r--gfx/fx/whip.pngbin0 -> 210 bytes
-rw-r--r--gfx/fx/wind.2bpp.lz.5a785180 (renamed from gfx/fx/wind.2bpp.lz)bin192 -> 192 bytes
-rw-r--r--gfx/fx/wind.pngbin0 -> 286 bytes
-rw-r--r--tools/gfx.c26
80 files changed, 33 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index ed74afe5c..b60672e35 100644
--- a/Makefile
+++ b/Makefile
@@ -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
index 5e203cb63..5e203cb63 100644
--- a/gfx/fx/aeroblast.2bpp.lz
+++ b/gfx/fx/aeroblast.2bpp.lz.2f07c4ea
Binary files differ
diff --git a/gfx/fx/aeroblast.png b/gfx/fx/aeroblast.png
new file mode 100644
index 000000000..1fdc07c2f
--- /dev/null
+++ b/gfx/fx/aeroblast.png
Binary files differ
diff --git a/gfx/fx/angels.2bpp.lz b/gfx/fx/angels.2bpp.lz.b026d81e
index 61d89d224..61d89d224 100644
--- a/gfx/fx/angels.2bpp.lz
+++ b/gfx/fx/angels.2bpp.lz.b026d81e
Binary files differ
diff --git a/gfx/fx/angels.png b/gfx/fx/angels.png
new file mode 100644
index 000000000..ef38c61d2
--- /dev/null
+++ b/gfx/fx/angels.png
Binary files differ
diff --git a/gfx/fx/beam.2bpp.lz b/gfx/fx/beam.2bpp.lz.80b6d613
index 1ce9ab82c..1ce9ab82c 100644
--- a/gfx/fx/beam.2bpp.lz
+++ b/gfx/fx/beam.2bpp.lz.80b6d613
Binary files differ
diff --git a/gfx/fx/beam.png b/gfx/fx/beam.png
new file mode 100755
index 000000000..32a3b1967
--- /dev/null
+++ b/gfx/fx/beam.png
Binary files differ
diff --git a/gfx/fx/bubble.2bpp.lz b/gfx/fx/bubble.2bpp.lz.03b8ac99
index 3d546191a..3d546191a 100644
--- a/gfx/fx/bubble.2bpp.lz
+++ b/gfx/fx/bubble.2bpp.lz.03b8ac99
Binary files differ
diff --git a/gfx/fx/bubble.png b/gfx/fx/bubble.png
new file mode 100644
index 000000000..b6febb0a8
--- /dev/null
+++ b/gfx/fx/bubble.png
Binary files differ
diff --git a/gfx/fx/charge.2bpp.lz b/gfx/fx/charge.2bpp.lz.95d3ea98
index 32c82243c..32c82243c 100644
--- a/gfx/fx/charge.2bpp.lz
+++ b/gfx/fx/charge.2bpp.lz.95d3ea98
Binary files differ
diff --git a/gfx/fx/charge.png b/gfx/fx/charge.png
new file mode 100644
index 000000000..90cb72f9f
--- /dev/null
+++ b/gfx/fx/charge.png
Binary files differ
diff --git a/gfx/fx/cut.2bpp.lz b/gfx/fx/cut.2bpp.lz.03d343ed
index 740a48799..740a48799 100644
--- a/gfx/fx/cut.2bpp.lz
+++ b/gfx/fx/cut.2bpp.lz.03d343ed
Binary files differ
diff --git a/gfx/fx/cut.png b/gfx/fx/cut.png
new file mode 100644
index 000000000..e227ad413
--- /dev/null
+++ b/gfx/fx/cut.png
Binary files differ
diff --git a/gfx/fx/egg.2bpp.lz b/gfx/fx/egg.2bpp.lz.41dd1a53
index fb55f2edc..fb55f2edc 100644
--- a/gfx/fx/egg.2bpp.lz
+++ b/gfx/fx/egg.2bpp.lz.41dd1a53
Binary files differ
diff --git a/gfx/fx/egg.png b/gfx/fx/egg.png
new file mode 100644
index 000000000..38aab505d
--- /dev/null
+++ b/gfx/fx/egg.png
Binary files differ
diff --git a/gfx/fx/explosion.2bpp.lz b/gfx/fx/explosion.2bpp.lz.55fc334f
index 4303302a1..4303302a1 100644
--- a/gfx/fx/explosion.2bpp.lz
+++ b/gfx/fx/explosion.2bpp.lz.55fc334f
Binary files differ
diff --git a/gfx/fx/explosion.png b/gfx/fx/explosion.png
new file mode 100644
index 000000000..0af9f1a0d
--- /dev/null
+++ b/gfx/fx/explosion.png
Binary files differ
diff --git a/gfx/fx/fire.2bpp.lz b/gfx/fx/fire.2bpp.lz.d7701cda
index e15e9f9bb..e15e9f9bb 100644
--- a/gfx/fx/fire.2bpp.lz
+++ b/gfx/fx/fire.2bpp.lz.d7701cda
Binary files differ
diff --git a/gfx/fx/fire.png b/gfx/fx/fire.png
new file mode 100644
index 000000000..19f01141b
--- /dev/null
+++ b/gfx/fx/fire.png
Binary files differ
diff --git a/gfx/fx/flower.2bpp.lz b/gfx/fx/flower.2bpp.lz.1bc2e9d2
index ef628afb4..ef628afb4 100644
--- a/gfx/fx/flower.2bpp.lz
+++ b/gfx/fx/flower.2bpp.lz.1bc2e9d2
Binary files differ
diff --git a/gfx/fx/flower.png b/gfx/fx/flower.png
new file mode 100644
index 000000000..61b4f58ce
--- /dev/null
+++ b/gfx/fx/flower.png
Binary files differ
diff --git a/gfx/fx/globe.2bpp.lz b/gfx/fx/globe.2bpp.lz.710dbb8e
index 99fa15c6f..99fa15c6f 100644
--- a/gfx/fx/globe.2bpp.lz
+++ b/gfx/fx/globe.2bpp.lz.710dbb8e
Binary files differ
diff --git a/gfx/fx/globe.png b/gfx/fx/globe.png
new file mode 100644
index 000000000..8d3a35683
--- /dev/null
+++ b/gfx/fx/globe.png
Binary files differ
diff --git a/gfx/fx/haze.2bpp.lz b/gfx/fx/haze.2bpp.lz.91424607
index e0cdc644c..e0cdc644c 100644
--- a/gfx/fx/haze.2bpp.lz
+++ b/gfx/fx/haze.2bpp.lz.91424607
Binary files differ
diff --git a/gfx/fx/haze.png b/gfx/fx/haze.png
new file mode 100644
index 000000000..8a870ba98
--- /dev/null
+++ b/gfx/fx/haze.png
Binary files differ
diff --git a/gfx/fx/hit.2bpp.lz b/gfx/fx/hit.2bpp.lz.2b3c83f2
index 5d9ffbe5d..5d9ffbe5d 100644
--- a/gfx/fx/hit.2bpp.lz
+++ b/gfx/fx/hit.2bpp.lz.2b3c83f2
Binary files differ
diff --git a/gfx/fx/hit.png b/gfx/fx/hit.png
new file mode 100644
index 000000000..228066331
--- /dev/null
+++ b/gfx/fx/hit.png
Binary files differ
diff --git a/gfx/fx/horn.2bpp.lz b/gfx/fx/horn.2bpp.lz.48908aae
index a92f74796..a92f74796 100644
--- a/gfx/fx/horn.2bpp.lz
+++ b/gfx/fx/horn.2bpp.lz.48908aae
Binary files differ
diff --git a/gfx/fx/horn.png b/gfx/fx/horn.png
new file mode 100644
index 000000000..56e8ca241
--- /dev/null
+++ b/gfx/fx/horn.png
Binary files differ
diff --git a/gfx/fx/ice.2bpp.lz b/gfx/fx/ice.2bpp.lz.664d900f
index 3d059700b..3d059700b 100644
--- a/gfx/fx/ice.2bpp.lz
+++ b/gfx/fx/ice.2bpp.lz.664d900f
Binary files differ
diff --git a/gfx/fx/ice.png b/gfx/fx/ice.png
new file mode 100644
index 000000000..62a67641e
--- /dev/null
+++ b/gfx/fx/ice.png
Binary files differ
diff --git a/gfx/fx/lightning.2bpp.lz b/gfx/fx/lightning.2bpp.lz.a88fc131
index 81de5850f..81de5850f 100644
--- a/gfx/fx/lightning.2bpp.lz
+++ b/gfx/fx/lightning.2bpp.lz.a88fc131
Binary files differ
diff --git a/gfx/fx/lightning.png b/gfx/fx/lightning.png
new file mode 100755
index 000000000..6606fad12
--- /dev/null
+++ b/gfx/fx/lightning.png
Binary files differ
diff --git a/gfx/fx/misc.2bpp.lz b/gfx/fx/misc.2bpp.lz.4b20c3d7
index d0c5f0dfc..d0c5f0dfc 100644
--- a/gfx/fx/misc.2bpp.lz
+++ b/gfx/fx/misc.2bpp.lz.4b20c3d7
Binary files differ
diff --git a/gfx/fx/misc.png b/gfx/fx/misc.png
new file mode 100755
index 000000000..d7e67508e
--- /dev/null
+++ b/gfx/fx/misc.png
Binary files differ
diff --git a/gfx/fx/noise.2bpp.lz b/gfx/fx/noise.2bpp.lz.acb4a76e
index e195da453..e195da453 100644
--- a/gfx/fx/noise.2bpp.lz
+++ b/gfx/fx/noise.2bpp.lz.acb4a76e
Binary files differ
diff --git a/gfx/fx/noise.png b/gfx/fx/noise.png
new file mode 100755
index 000000000..17540a5e8
--- /dev/null
+++ b/gfx/fx/noise.png
Binary files differ
diff --git a/gfx/fx/objects.2bpp.lz b/gfx/fx/objects.2bpp.lz.83f812de
index 1a52d6350..1a52d6350 100644
--- a/gfx/fx/objects.2bpp.lz
+++ b/gfx/fx/objects.2bpp.lz.83f812de
Binary files differ
diff --git a/gfx/fx/objects.png b/gfx/fx/objects.png
new file mode 100755
index 000000000..91ea435b8
--- /dev/null
+++ b/gfx/fx/objects.png
Binary files differ
diff --git a/gfx/fx/plant.2bpp.lz b/gfx/fx/plant.2bpp.lz.4a00c417
index 589fc48b6..589fc48b6 100644
--- a/gfx/fx/plant.2bpp.lz
+++ b/gfx/fx/plant.2bpp.lz.4a00c417
Binary files differ
diff --git a/gfx/fx/plant.png b/gfx/fx/plant.png
new file mode 100644
index 000000000..ec1125054
--- /dev/null
+++ b/gfx/fx/plant.png
Binary files differ
diff --git a/gfx/fx/poison.2bpp.lz b/gfx/fx/poison.2bpp.lz.fc7dc9c1
index df2cbe604..df2cbe604 100644
--- a/gfx/fx/poison.2bpp.lz
+++ b/gfx/fx/poison.2bpp.lz.fc7dc9c1
Binary files differ
diff --git a/gfx/fx/poison.png b/gfx/fx/poison.png
new file mode 100755
index 000000000..ebbbc52be
--- /dev/null
+++ b/gfx/fx/poison.png
Binary files differ
diff --git a/gfx/fx/pokeball.2bpp.lz b/gfx/fx/pokeball.2bpp.lz.c58f7e01
index e09b082db..e09b082db 100644
--- a/gfx/fx/pokeball.2bpp.lz
+++ b/gfx/fx/pokeball.2bpp.lz.c58f7e01
Binary files differ
diff --git a/gfx/fx/pokeball.png b/gfx/fx/pokeball.png
new file mode 100755
index 000000000..47edf2190
--- /dev/null
+++ b/gfx/fx/pokeball.png
Binary files differ
diff --git a/gfx/fx/powder.2bpp.lz b/gfx/fx/powder.2bpp.lz.bfd566bb
index 375d0bf9c..375d0bf9c 100644
--- a/gfx/fx/powder.2bpp.lz
+++ b/gfx/fx/powder.2bpp.lz.bfd566bb
Binary files differ
diff --git a/gfx/fx/powder.png b/gfx/fx/powder.png
new file mode 100644
index 000000000..b2cb4d459
--- /dev/null
+++ b/gfx/fx/powder.png
Binary files differ
diff --git a/gfx/fx/psychic.2bpp.lz b/gfx/fx/psychic.2bpp.lz.d80f285c
index d6402dd3d..d6402dd3d 100644
--- a/gfx/fx/psychic.2bpp.lz
+++ b/gfx/fx/psychic.2bpp.lz.d80f285c
Binary files differ
diff --git a/gfx/fx/psychic.png b/gfx/fx/psychic.png
new file mode 100644
index 000000000..a6d22db2f
--- /dev/null
+++ b/gfx/fx/psychic.png
Binary files differ
diff --git a/gfx/fx/reflect.2bpp.lz b/gfx/fx/reflect.2bpp.lz.9a9c822d
index a563de1a8..a563de1a8 100644
--- a/gfx/fx/reflect.2bpp.lz
+++ b/gfx/fx/reflect.2bpp.lz.9a9c822d
Binary files differ
diff --git a/gfx/fx/reflect.png b/gfx/fx/reflect.png
new file mode 100644
index 000000000..48fbd7d0d
--- /dev/null
+++ b/gfx/fx/reflect.png
Binary files differ
diff --git a/gfx/fx/rocks.2bpp.lz b/gfx/fx/rocks.2bpp.lz.73d0153e
index d5481ea6e..d5481ea6e 100644
--- a/gfx/fx/rocks.2bpp.lz
+++ b/gfx/fx/rocks.2bpp.lz.73d0153e
Binary files differ
diff --git a/gfx/fx/rocks.png b/gfx/fx/rocks.png
new file mode 100755
index 000000000..d7fe76b2f
--- /dev/null
+++ b/gfx/fx/rocks.png
Binary files differ
diff --git a/gfx/fx/rope.2bpp.lz b/gfx/fx/rope.2bpp.lz.209d63dd
index f7d6a480f..f7d6a480f 100644
--- a/gfx/fx/rope.2bpp.lz
+++ b/gfx/fx/rope.2bpp.lz.209d63dd
Binary files differ
diff --git a/gfx/fx/rope.png b/gfx/fx/rope.png
new file mode 100644
index 000000000..a12553c7a
--- /dev/null
+++ b/gfx/fx/rope.png
Binary files differ
diff --git a/gfx/fx/sand.2bpp.lz b/gfx/fx/sand.2bpp.lz.c87c0eaa
index 3508a1f58..3508a1f58 100644
--- a/gfx/fx/sand.2bpp.lz
+++ b/gfx/fx/sand.2bpp.lz.c87c0eaa
Binary files differ
diff --git a/gfx/fx/sand.png b/gfx/fx/sand.png
new file mode 100755
index 000000000..a54db235d
--- /dev/null
+++ b/gfx/fx/sand.png
Binary files differ
diff --git a/gfx/fx/shapes.2bpp.lz b/gfx/fx/shapes.2bpp.lz.262d77f0
index d7d48020f..d7d48020f 100644
--- a/gfx/fx/shapes.2bpp.lz
+++ b/gfx/fx/shapes.2bpp.lz.262d77f0
Binary files differ
diff --git a/gfx/fx/shapes.png b/gfx/fx/shapes.png
new file mode 100644
index 000000000..b99fc601a
--- /dev/null
+++ b/gfx/fx/shapes.png
Binary files differ
diff --git a/gfx/fx/shine.2bpp.lz b/gfx/fx/shine.2bpp.lz.5fb79056
index 3e47170b1..3e47170b1 100644
--- a/gfx/fx/shine.2bpp.lz
+++ b/gfx/fx/shine.2bpp.lz.5fb79056
Binary files differ
diff --git a/gfx/fx/shine.png b/gfx/fx/shine.png
new file mode 100644
index 000000000..1b7e9834b
--- /dev/null
+++ b/gfx/fx/shine.png
Binary files differ
diff --git a/gfx/fx/skyattack.2bpp.lz b/gfx/fx/skyattack.2bpp.lz.31738ab8
index e0412dd81..e0412dd81 100644
--- a/gfx/fx/skyattack.2bpp.lz
+++ b/gfx/fx/skyattack.2bpp.lz.31738ab8
Binary files differ
diff --git a/gfx/fx/skyattack.png b/gfx/fx/skyattack.png
new file mode 100644
index 000000000..e731c691c
--- /dev/null
+++ b/gfx/fx/skyattack.png
Binary files differ
diff --git a/gfx/fx/smoke.2bpp.lz b/gfx/fx/smoke.2bpp.lz.aa05905e
index bf26fed2b..bf26fed2b 100644
--- a/gfx/fx/smoke.2bpp.lz
+++ b/gfx/fx/smoke.2bpp.lz.aa05905e
Binary files differ
diff --git a/gfx/fx/smoke.png b/gfx/fx/smoke.png
new file mode 100644
index 000000000..1b09874ba
--- /dev/null
+++ b/gfx/fx/smoke.png
Binary files differ
diff --git a/gfx/fx/speed.2bpp.lz b/gfx/fx/speed.2bpp.lz.1732b364
index 5d09f9a6a..5d09f9a6a 100644
--- a/gfx/fx/speed.2bpp.lz
+++ b/gfx/fx/speed.2bpp.lz.1732b364
Binary files differ
diff --git a/gfx/fx/speed.png b/gfx/fx/speed.png
new file mode 100644
index 000000000..e219b38c9
--- /dev/null
+++ b/gfx/fx/speed.png
Binary files differ
diff --git a/gfx/fx/status.2bpp.lz b/gfx/fx/status.2bpp.lz.0c0aa13e
index e5ce7df8a..e5ce7df8a 100644
--- a/gfx/fx/status.2bpp.lz
+++ b/gfx/fx/status.2bpp.lz.0c0aa13e
Binary files differ
diff --git a/gfx/fx/status.png b/gfx/fx/status.png
new file mode 100644
index 000000000..cb8527963
--- /dev/null
+++ b/gfx/fx/status.png
Binary files differ
diff --git a/gfx/fx/water.2bpp.lz b/gfx/fx/water.2bpp.lz.7b52ed12
index 6a81bbb65..6a81bbb65 100644
--- a/gfx/fx/water.2bpp.lz
+++ b/gfx/fx/water.2bpp.lz.7b52ed12
Binary files differ
diff --git a/gfx/fx/water.png b/gfx/fx/water.png
new file mode 100644
index 000000000..4e3c3b719
--- /dev/null
+++ b/gfx/fx/water.png
Binary files differ
diff --git a/gfx/fx/wave.2bpp.lz b/gfx/fx/wave.2bpp.lz.bee99402
index d94a5cb35..d94a5cb35 100644
--- a/gfx/fx/wave.2bpp.lz
+++ b/gfx/fx/wave.2bpp.lz.bee99402
Binary files differ
diff --git a/gfx/fx/wave.png b/gfx/fx/wave.png
new file mode 100644
index 000000000..55d4faa5f
--- /dev/null
+++ b/gfx/fx/wave.png
Binary files differ
diff --git a/gfx/fx/web.2bpp.lz b/gfx/fx/web.2bpp.lz.80e3d480
index 84b4018e5..84b4018e5 100644
--- a/gfx/fx/web.2bpp.lz
+++ b/gfx/fx/web.2bpp.lz.80e3d480
Binary files differ
diff --git a/gfx/fx/web.png b/gfx/fx/web.png
new file mode 100644
index 000000000..2aeffef0e
--- /dev/null
+++ b/gfx/fx/web.png
Binary files differ
diff --git a/gfx/fx/whip.2bpp.lz b/gfx/fx/whip.2bpp.lz.d80d8d6e
index da62ba918..da62ba918 100644
--- a/gfx/fx/whip.2bpp.lz
+++ b/gfx/fx/whip.2bpp.lz.d80d8d6e
Binary files differ
diff --git a/gfx/fx/whip.png b/gfx/fx/whip.png
new file mode 100644
index 000000000..92d7ded6f
--- /dev/null
+++ b/gfx/fx/whip.png
Binary files differ
diff --git a/gfx/fx/wind.2bpp.lz b/gfx/fx/wind.2bpp.lz.5a785180
index 9c2769b83..9c2769b83 100644
--- a/gfx/fx/wind.2bpp.lz
+++ b/gfx/fx/wind.2bpp.lz.5a785180
Binary files differ
diff --git a/gfx/fx/wind.png b/gfx/fx/wind.png
new file mode 100644
index 000000000..b02031392
--- /dev/null
+++ b/gfx/fx/wind.png
Binary files differ
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);