Skip to content

Commit

Permalink
Use long option flags for rgbgfx, same as tools/gfx
Browse files Browse the repository at this point in the history
  • Loading branch information
Rangi42 committed Aug 28, 2024
1 parent 5a9bfb4 commit f99f0e6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -210,14 +210,14 @@ gfx/pokemon/girafarig/front.animated.tilemap: gfx/pokemon/girafarig/front.2bpp g
### Pokemon and trainer sprite rules

gfx/pokemon/%/back.2bpp: gfx/pokemon/%/back.png gfx/pokemon/%/normal.gbcpal
$(RGBGFX) -Z -c gbc:$(word 2,$^) -o $@ $<
$(RGBGFX) --columns --colors gbc:$(word 2,$^) -o $@ $<
gfx/pokemon/%/front.2bpp: gfx/pokemon/%/front.png gfx/pokemon/%/normal.gbcpal
$(RGBGFX) -c gbc:$(word 2,$^) -o $@ $<
$(RGBGFX) --colors gbc:$(word 2,$^) -o $@ $<
gfx/pokemon/%/normal.gbcpal: gfx/pokemon/%/front.gbcpal gfx/pokemon/%/back.gbcpal
tools/gbcpal $(tools/gbcpal) $@ $^

gfx/trainers/%.2bpp: gfx/trainers/%.png gfx/trainers/%.gbcpal
$(RGBGFX) -Z -c gbc:$(word 2,$^) -o $@ $<
$(RGBGFX) --columns --colors gbc:$(word 2,$^) -o $@ $<


### Rules to match specific Pokemon and trainer sprites
Expand All @@ -240,12 +240,12 @@ gfx/trainers/swimmer_m.gbcpal: tools/gbcpal += --reverse

# Egg does not have a back sprite, so it only uses front.gbcpal
gfx/pokemon/egg/front.2bpp: gfx/pokemon/egg/front.png gfx/pokemon/egg/front.gbcpal
gfx/pokemon/egg/front.2bpp: rgbgfx += -c gbc:$(word 2,$^)
gfx/pokemon/egg/front.2bpp: rgbgfx += --colors gbc:$(word 2,$^)

# Unown letters share one normal.pal, so they don't already build each normal.gbcpal
$(foreach png, $(wildcard gfx/pokemon/unown_*/front.png),\
$(eval $(png:.png=.2bpp): $(png) $(png:front.png=normal.gbcpal)))
gfx/pokemon/unown_%/front.2bpp: rgbgfx += -c gbc:$(@:front.2bpp=normal.gbcpal)
gfx/pokemon/unown_%/front.2bpp: rgbgfx += --colors gbc:$(@:front.2bpp=normal.gbcpal)


### Misc file-specific graphics rules
Expand Down

0 comments on commit f99f0e6

Please sign in to comment.