Add Pokemon pic pngs.
Copies of the matching compressed files are kept, so files with a matching hash will use the matching compressed file instead. This is the best that can be done until the compressor is fixed, which may never happen.
46
Makefile
@@ -38,7 +38,7 @@ clean:
|
|||||||
compare: pokecrystal.gbc pokecrystal11.gbc
|
compare: pokecrystal.gbc pokecrystal11.gbc
|
||||||
@$(MD5) roms.md5
|
@$(MD5) roms.md5
|
||||||
|
|
||||||
tools: tools/lzcomp tools/png_dimensions tools/scan_includes tools/palette tools/pokemon_animation tools/pokemon_animation_graphics
|
tools: tools/lzcomp tools/png_dimensions tools/scan_includes tools/palette tools/pokemon_animation tools/pokemon_animation_graphics ;
|
||||||
|
|
||||||
tools/%: tools/%.c
|
tools/%: tools/%.c
|
||||||
$(CC) -o $@ $<
|
$(CC) -o $@ $<
|
||||||
@@ -68,22 +68,39 @@ pokecrystal.gbc: $(crystal_obj)
|
|||||||
rgbgfx -o $@ $<
|
rgbgfx -o $@ $<
|
||||||
%.1bpp: %.png
|
%.1bpp: %.png
|
||||||
rgbgfx -d1 -o $@ $<
|
rgbgfx -d1 -o $@ $<
|
||||||
|
%.tilemap: %.png
|
||||||
|
rgbgfx -t $@ $<
|
||||||
|
%.gbcpal: %.png
|
||||||
|
rgbgfx -p $@ $<
|
||||||
|
|
||||||
|
|
||||||
|
define LOUD
|
||||||
|
echo "$1"; $1
|
||||||
|
endef
|
||||||
|
|
||||||
|
# For files that the compressor can't match, there will be a .lz file suffixed with the hash of the correct uncompressed file.
|
||||||
|
# If the hash of the uncompressed file matches, use this .lz instead.
|
||||||
|
# This allows pngs to be used for compressed graphics and still match.
|
||||||
|
|
||||||
|
%.lz: hash = $(shell md5sum $(*D)/$(*F) | sed "s/\(.\{8\}\).*/\1/")
|
||||||
%.lz: %
|
%.lz: %
|
||||||
tools/lzcomp $< $@
|
$(eval filename := $@.$(hash))
|
||||||
|
@if [ -f $(filename) ]; then \
|
||||||
|
$(call LOUD, cp $(filename) $@); \
|
||||||
|
else \
|
||||||
|
$(call LOUD, tools/lzcomp $< $@); \
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# Pokemon pic graphics rules
|
||||||
|
|
||||||
%.dimensions: %.png
|
%.dimensions: %.png
|
||||||
tools/png_dimensions $< $@
|
tools/png_dimensions $< $@
|
||||||
%.tilemap: %.png
|
%.pal: %.gbcpal
|
||||||
rgbgfx -t $@ $<
|
|
||||||
%.pal: %.pal.bin
|
|
||||||
tools/palette $< > $@
|
tools/palette $< > $@
|
||||||
%.pal.bin: %.png
|
|
||||||
rgbgfx -p $@ $<
|
|
||||||
|
|
||||||
gfx/pics/%/normal.pal: gfx/pics/%/normal.pal.bin
|
gfx/pics/%/normal.pal: gfx/pics/%/normal.gbcpal
|
||||||
tools/palette -p $< > $@
|
tools/palette -p $< > $@
|
||||||
gfx/pics/%/normal.pal.bin: gfx/pics/%/front.png
|
|
||||||
rgbgfx -p $@ $<
|
|
||||||
gfx/pics/%/back.2bpp: gfx/pics/%/back.png
|
gfx/pics/%/back.2bpp: gfx/pics/%/back.png
|
||||||
rgbgfx -h -o $@ $<
|
rgbgfx -h -o $@ $<
|
||||||
gfx/pics/%/bitmask.asm: gfx/pics/%/front.animated.tilemap gfx/pics/%/front.dimensions
|
gfx/pics/%/bitmask.asm: gfx/pics/%/front.animated.tilemap gfx/pics/%/front.dimensions
|
||||||
@@ -97,12 +114,11 @@ gfx/pics/%/front.animated.tilemap: gfx/pics/%/front.2bpp gfx/pics/%/front.dimens
|
|||||||
# Don't use -h, pokemon_animation_graphics takes care of it
|
# Don't use -h, pokemon_animation_graphics takes care of it
|
||||||
#gfx/pics/%/front.2bpp: gfx/pics/%/front.png
|
#gfx/pics/%/front.2bpp: gfx/pics/%/front.png
|
||||||
# rgbgfx -o $@ $<
|
# rgbgfx -o $@ $<
|
||||||
gfx/pics/%/front.2bpp.lz: gfx/pics/%/front.animated.2bpp
|
|
||||||
tools/lzcomp $< $@
|
|
||||||
|
|
||||||
gfx/shrink1.2bpp: gfx/shrink1.png
|
|
||||||
rgbgfx -h -o $@ $<
|
# Misc file-specific graphics rules
|
||||||
gfx/shrink2.2bpp: gfx/shrink2.png
|
|
||||||
|
gfx/shrink%.2bpp: gfx/shrink%.png
|
||||||
rgbgfx -h -o $@ $<
|
rgbgfx -h -o $@ $<
|
||||||
|
|
||||||
gfx/trainers/%.2bpp: gfx/trainers/%.png
|
gfx/trainers/%.2bpp: gfx/trainers/%.png
|
||||||
|
584
gfx/pics.asm
BIN
gfx/pics/abra/back.png
Normal file
After Width: | Height: | Size: 445 B |
BIN
gfx/pics/abra/front.png
Normal file
After Width: | Height: | Size: 674 B |
@@ -1,4 +0,0 @@
|
|||||||
|
|
||||||
RGB 28, 19, 03
|
|
||||||
RGB 12, 08, 10
|
|
||||||
|
|
BIN
gfx/pics/aerodactyl/back.png
Normal file
After Width: | Height: | Size: 414 B |
BIN
gfx/pics/aerodactyl/front.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
@@ -1,4 +0,0 @@
|
|||||||
|
|
||||||
RGB 19, 19, 15
|
|
||||||
RGB 12, 11, 11
|
|
||||||
|
|
BIN
gfx/pics/aipom/back.png
Normal file
After Width: | Height: | Size: 410 B |
BIN
gfx/pics/aipom/front.png
Normal file
After Width: | Height: | Size: 664 B |
@@ -1,4 +0,0 @@
|
|||||||
|
|
||||||
RGB 29, 23, 12
|
|
||||||
RGB 12, 04, 14
|
|
||||||
|
|
BIN
gfx/pics/alakazam/back.png
Normal file
After Width: | Height: | Size: 532 B |