Skip to content

Commit

Permalink
Separate the usual rgbgfx flags from the --color specification
Browse files Browse the repository at this point in the history
  • Loading branch information
Rangi42 committed Aug 28, 2024
1 parent f99f0e6 commit c0173db
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -209,15 +209,19 @@ gfx/pokemon/girafarig/front.animated.tilemap: gfx/pokemon/girafarig/front.2bpp g

### Pokemon and trainer sprite rules

gfx/pokemon/%/back.2bpp: rgbgfx += --columns

gfx/trainers/%.2bpp: rgbgfx += --columns

gfx/pokemon/%/back.2bpp: gfx/pokemon/%/back.png gfx/pokemon/%/normal.gbcpal
$(RGBGFX) --columns --colors gbc:$(word 2,$^) -o $@ $<
$(RGBGFX) $(rgbgfx) --colors gbc:$(word 2,$^) -o $@ $<
gfx/pokemon/%/front.2bpp: gfx/pokemon/%/front.png gfx/pokemon/%/normal.gbcpal
$(RGBGFX) --colors gbc:$(word 2,$^) -o $@ $<
$(RGBGFX) $(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) --columns --colors gbc:$(word 2,$^) -o $@ $<
$(RGBGFX) $(rgbgfx) --colors gbc:$(word 2,$^) -o $@ $<


### Rules to match specific Pokemon and trainer sprites
Expand Down

0 comments on commit c0173db

Please sign in to comment.