ref: dc620c08ee43a4baee7cb4b04b22661ccf2ad60a
parent: 0b5471f385d3cc66bb4ae7aa4191ce3af9f50cac
parent: 99b6080257b6795aa9ee6dac50bf0863a96fe103
author: yenatch <yenatch@gmail.com>
date: Tue Jul 21 22:50:51 EDT 2015
Merge pull request #296 from yenatch/gfx-script Add a script to convert project-specific graphics.
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@
.SECONDEXPANSION:
poketools := extras/pokemontools
-gfx := $(PYTHON) $(poketools)/gfx.py
+gfx := $(PYTHON) gfx.py
includes := $(PYTHON) $(poketools)/scan_includes.py
@@ -79,12 +79,13 @@
find . -iname "*.[12]bpp" -exec touch {} +
find . -iname "*.lz" -exec touch {} +
-%.2bpp: %.png ; @$(gfx) 2bpp $<
-%.1bpp: %.png ; @$(gfx) 1bpp $<
-%.lz: % ; @$(gfx) lz $<
+%.2bpp: %.png ; $(gfx) 2bpp $<
+%.1bpp: %.png ; $(gfx) 1bpp $<
+%.lz: % ; $(gfx) lz $<
-%.pal: ;
+%.pal: %.2bpp ;
+gfx/pics/%/normal.pal gfx/pics/%/bitmask.asm gfx/pics/%/frames.asm: gfx/pics/%/front.2bpp ;
%.bin: ;
%.blk: ;
%.tilemap: ;
--- a/engine/credits.asm
+++ b/engine/credits.asm
@@ -792,13 +792,13 @@
; 109c24 (42:5c24)
-CreditsBorderGFX: INCBIN "gfx/credits/border.w72.2bpp"
+CreditsBorderGFX: INCBIN "gfx/credits/border.2bpp"
CreditsMonsGFX:
-CreditsPichuGFX: INCBIN "gfx/credits/pichu.w32.2bpp"
-CreditsSmoochumGFX: INCBIN "gfx/credits/smoochum.w32.2bpp"
-CreditsDittoGFX: INCBIN "gfx/credits/ditto.w32.2bpp"
-CreditsIgglybuffGFX: INCBIN "gfx/credits/igglybuff.w32.2bpp"
+CreditsPichuGFX: INCBIN "gfx/credits/pichu.2bpp"
+CreditsSmoochumGFX: INCBIN "gfx/credits/smoochum.2bpp"
+CreditsDittoGFX: INCBIN "gfx/credits/ditto.2bpp"
+CreditsIgglybuffGFX: INCBIN "gfx/credits/igglybuff.2bpp"
CreditsScript: ; 10acb4
--- a/engine/pack.asm
+++ b/engine/pack.asm
@@ -1690,4 +1690,4 @@
INCBIN "gfx/misc/pack_menu.2bpp"
PackGFX:
-INCBIN "gfx/misc/pack.w40.2bpp"
+INCBIN "gfx/misc/pack.2bpp"