diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-09-19 16:17:01 -0400 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-09-19 16:17:01 -0400 |
commit | fcdedfd2e48f0b6ea18bad0093d8b13fb5c1712a (patch) | |
tree | 2e893f34f9133f3043c44b7a50cb1d0bf0c91cc0 /gfx | |
parent | 560d6f990aa81346e1ca8029a48f5ea0611f7467 (diff) |
Use superfamiconv for 4bpp graphics
Diffstat (limited to 'gfx')
-rw-r--r-- | gfx/gfx.mk | 13 | ||||
-rw-r--r-- | gfx/sgb_border/sgb_border.png | bin | 2657 -> 2553 bytes |
2 files changed, 12 insertions, 1 deletions
@@ -1,10 +1,21 @@ +# These intermediate build products need specifying here to be PRECIOUS +gfx := \ +$(dir_build)/gfx/copyright/copyright.2bpp \ +$(dir_build)/gfx/game_select/game_select.2bpp \ +$(dir_build)/gfx/title/title_1.2bpp \ +$(dir_build)/gfx/title/title_2.2bpp + RGBGFXFLAGS := $(dir_build)/%.2bpp: %.png | $$(dir $$@) $(RGBGFX) $(RGBGFXFLAGS) -o $@ $< +SUPERFAMICONVFLAGS := +$(dir_build)/%.4bpp: %.png | $$(dir $$@) + superfamiconv tiles -i $< -d $@ -R $(SUPERFAMICONVFLAGS) + $(dir_build)/gfx/sprites/%.2bpp: RGBGFXFLAGS = -h -$(dir_build)/gfx/sgb_border/sgb_border.2bpp: RGBGFXFLAGS = -x 14 +$(dir_build)/gfx/sgb_border/sgb_border.4bpp: SUPERFAMICONVFLAGS = -T 257 # data_select.2bpp.xor decompresses to 2bpp-encoded data_select.png with an extra byte $33 (ASCII "3") appended $(dir_build)/gfx/data_select/data_select.2bpp: gfx/data_select/data_select.png | $$(dir $$@) diff --git a/gfx/sgb_border/sgb_border.png b/gfx/sgb_border/sgb_border.png Binary files differindex b06f06e..f18620b 100644 --- a/gfx/sgb_border/sgb_border.png +++ b/gfx/sgb_border/sgb_border.png |