pokepinballrs/graphics_rules.mk
Retnuhytnuob 450aa1c2a6
Some checks are pending
CI / build (push) Waiting to run
Gbagfx OAM chunk handling, with override support (#143)
* Add tooling support for graphics with 2^n chunking

* update to OAM handling, from 2n sizing

* Update assembly to use the hex, rather than music name, for ease of uese in decompme/m2C

* additional tools/examples

* graphics build, not currently compare matching.

* remove sprites.png

* working conversion in make file!

* stage/main folder done

* stage/misc folder done

* stage/ruby complete

* stage/sapphire updated

* base for remaining kinda-graphics; file name casing

* more name casing

* extract catch sprites

* remove special 6x4 handling from oam slicer; switched hed the 2 images to using non-oam 2x2 chunks. (net same, but allows the 6x4 to process normally when things like the whalmer are found)

* Palette info for the catch sprites, thanks to cyphgirl

* obliterate the old hatch-sprite code

* refactor segments to not have the base file name dependancy

* catch mon 1-9, horizontal layout

* rename the f param in the json for graphics

* casing cleanup?

* .

* possible fix for the out of date segment piece

* Replace graphic_cnvt_attrs.txt strategy with individually-generated makefile rules

* Don't specify tileCount

---------

Co-authored-by: Marcus Huderle <huderlem@gmail.com>
2026-02-08 14:17:19 -06:00

18 lines
576 B
Makefile

GFX_JSONS := $(shell find graphics -type f -name '*.json')
GFX_RULES_SCRIPT := tools/scripts/generate_graphics_rules.sh
GFX_RULES_GEN := graphics_rules_generated.mk
$(GFX_RULES_GEN): $(GFX_JSONS) $(GFX_RULES_SCRIPT)
bash $(GFX_RULES_SCRIPT) $(GFX_JSONS) > $@
-include $(GFX_RULES_GEN)
graphics/field_select/sprites.4bpp: graphics/field_select/sprites.png
$(GFX) $< $@ -num_tiles 513
graphics/options/sprites.4bpp: graphics/options/sprites.png
$(GFX) $< $@ -num_tiles 257
graphics/pokedex/text_glyphs.4bpp: graphics/pokedex/text_glyphs.png
$(GFX) $< $@ -num_tiles 513