[build] Maintain trainers as pngs (#25)

This commit is contained in:
FexCollects 2025-07-15 20:46:46 -06:00 committed by Artrios
parent dc457dfdf2
commit 5648890fd9
96 changed files with 11 additions and 3 deletions

View File

@ -20,6 +20,14 @@ include trainer_cards.mk
# Include the card id to berry definition mapping
include berry_cards.mk
# Capture all the pngs and label them to be converted to 4bpp
GFX=$(addprefix build/, $(addsuffix .4bpp, $(basename $(wildcard sprites/trainers/*.png))))
# Convert png and convert them
build/sprites/trainers/%.4bpp: sprites/trainers/%.png
../bin/pret/gbagfx $< $@
.PRECIOUS: build/sprites/trainers/%.4bpp
build/prologue-%.tx: prologue.asm
python3 ../scripts/regionalize.py $< $@ $* $*
build/prologue-%.o: build/prologue-%.tx
@ -69,7 +77,7 @@ build/trainers/%.mev: build/trainers/%.bin
build/card-%-EN.tx: card-%.asm
python3 ../scripts/ereadertext.py $< $@ EN
build/card-%.o: build/card-%.tx build/prologue-EN.tx build/battletrainer-EN.tx build/enigmaberry-EN.tx
build/card-%.o: build/card-%.tx build/prologue-EN.tx build/battletrainer-EN.tx build/enigmaberry-EN.tx $(GFX)
../bin/rgbds/v0.9.1/rgbasm -I build -M $@.d -o $@ $<
build/card-%.gbc: build/card-%.o
../bin/rgbds/v0.9.1/rgblink -o $@ $<
@ -85,7 +93,7 @@ build/card-%.300.bmp: build/card-%-01.raw
.PRECIOUS: build/card-%-EN.tx build/card-%.o build/card-%.gbc build/card-%.z80 build/card-%.vpk build/card-%-01.raw build/card-%.300.bmp
# Automatically create build dirs if missing
BUILD_DIRS=build build/trainers build/berries
BUILD_DIRS=build build/trainers build/berries build/sprites/trainers
$(info $(shell mkdir -p $(BUILD_DIRS)))
.PHONY: clean

View File

@ -13,7 +13,7 @@ BackdropPalettes: ; A04
INCLUDE "sprites/battletrainer3.pal"
INCLUDE "sprites/battletrainer4.pal"
TrainerPalette: ; A6C
INCLUDE "sprites/battletrainer5.pal"
INCLUDE "sprites/trainersilhouette.pal"
DoorPalette: ; A74
INCLUDE "sprites/trainerdoor.pal"

Binary file not shown.

After

Width:  |  Height:  |  Size: 321 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 317 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 301 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 316 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 342 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 353 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 389 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 309 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 334 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 326 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 292 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 301 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 263 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 292 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 364 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 272 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 324 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 307 B

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 288 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 360 B

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 320 B

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 303 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 330 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 321 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 301 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 320 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 318 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 337 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 329 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 328 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 359 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 353 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 325 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 354 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 293 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 292 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 289 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 254 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 300 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 302 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 330 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 371 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 353 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 353 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 286 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 308 B

BIN
bin/pret/gbagfx Executable file

Binary file not shown.