pokemon PNGs and palettes
9
.gitattributes
vendored
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
*.pal text eol=crlf
|
||||||
|
|
||||||
|
*.s text eol=lf
|
||||||
|
*.txt text eol=lf
|
||||||
|
Makefile text eol=lf
|
||||||
|
*.mk text eol=lf
|
||||||
|
|
||||||
|
*.png binary
|
||||||
|
*.bin binary
|
12
.gitignore
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
*.exe
|
||||||
|
*.o
|
||||||
|
*.elf
|
||||||
|
*.gba
|
||||||
|
*.1bpp
|
||||||
|
*.4bpp
|
||||||
|
*.8bpp
|
||||||
|
*.gbapal
|
||||||
|
*.lz
|
||||||
|
pokeas
|
||||||
|
pokeld
|
||||||
|
pokeobjcopy
|
67
Makefile
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
AS = ./pokeas
|
||||||
|
ASFLAGS = -mcpu=arm7tdmi
|
||||||
|
|
||||||
|
SHA1 := sha1sum -c
|
||||||
|
|
||||||
|
# Clear the default suffixes.
|
||||||
|
.SUFFIXES:
|
||||||
|
|
||||||
|
# Secondary expansion is required for dependency variables in object rules.
|
||||||
|
.SECONDEXPANSION:
|
||||||
|
|
||||||
|
.PRECIOUS: %.1bpp %.4bpp %.8bpp %.gbapal %.lz
|
||||||
|
|
||||||
|
.PHONY: rom tools clean compare
|
||||||
|
|
||||||
|
gfx := tools/gbagfx/gbagfx
|
||||||
|
1bpp := $(gfx) 1bpp
|
||||||
|
4bpp := $(gfx) 4bpp
|
||||||
|
8bpp := $(gfx) 8bpp
|
||||||
|
gbapal := $(gfx) gbapal
|
||||||
|
lz := $(gfx) lz
|
||||||
|
scaninc := tools/scaninc/scaninc
|
||||||
|
|
||||||
|
objs = asm/emerald.o
|
||||||
|
|
||||||
|
$(foreach obj, $(objs), \
|
||||||
|
$(eval $(obj)_deps := $(shell $(scaninc) $(obj:.o=.s))) \
|
||||||
|
)
|
||||||
|
|
||||||
|
rom := pokeemerald.gba
|
||||||
|
elf := $(rom:.gba=.elf)
|
||||||
|
|
||||||
|
rom: $(rom)
|
||||||
|
|
||||||
|
tools: $(gfx) $(scaninc)
|
||||||
|
|
||||||
|
# For contributors to make sure a change didn't affect the contents of the ROM.
|
||||||
|
compare: $(rom)
|
||||||
|
@$(SHA1) rom.sha1
|
||||||
|
|
||||||
|
clean:
|
||||||
|
$(RM) $(rom) $(elf) $(objs)
|
||||||
|
find . \( -iname '*.1bpp' -o -iname '*.4bpp' -o -iname '*.8bpp' -o -iname '*.gbapal' -o -iname '*.lz' \) -exec rm {} +
|
||||||
|
|
||||||
|
include graphics_file_rules.mk
|
||||||
|
|
||||||
|
%.png: ;
|
||||||
|
%.pal: ;
|
||||||
|
%.1bpp: %.png ; @$(1bpp) $<
|
||||||
|
%.4bpp: %.png ; @$(4bpp) $<
|
||||||
|
%.8bpp: %.png ; @$(8bpp) $<
|
||||||
|
%.gbapal: %.pal ; @$(gbapal) $<
|
||||||
|
%.lz: % ; @$(lz) $<
|
||||||
|
|
||||||
|
%.o: %.s $$($$@_deps)
|
||||||
|
$(AS) $(ASFLAGS) -o $@ $<
|
||||||
|
|
||||||
|
# Link objects to produce the ROM.
|
||||||
|
$(rom): $(objs)
|
||||||
|
./pokeld -T ld_script.txt -T wram_syms.txt -o $(elf) $(objs)
|
||||||
|
./pokeobjcopy -O binary $(elf) $(rom)
|
||||||
|
|
||||||
|
$(gfx):
|
||||||
|
cd tools/gbagfx && make clean && make
|
||||||
|
|
||||||
|
$(scaninc):
|
||||||
|
cd tools/scaninc && make clean && make
|
@ -1,4 +1,4 @@
|
|||||||
as -mcpu=arm7tdmi asm/emerald.s
|
as -mcpu=arm7tdmi asm/emerald.s -o emerald.o
|
||||||
ld -T ld_script.txt -T wram_syms.txt -o emerald.o a.out
|
ld -T ld_script.txt -T wram_syms.txt -o emerald.elf emerald.o
|
||||||
objcopy -O binary emerald.o emerald.gba
|
objcopy -O binary emerald.elf emerald.gba
|
||||||
fc /b base_emerald.gba emerald.gba
|
fc /b base_emerald.gba emerald.gba
|
||||||
|
10
data/data2.s
@ -12368,12 +12368,12 @@ gUnknown_08C2EA9C: ; 8C2EA9C
|
|||||||
.align 2, 0
|
.align 2, 0
|
||||||
|
|
||||||
gMonIcon_QuestionMark: ; 8D774D0
|
gMonIcon_QuestionMark: ; 8D774D0
|
||||||
.incbin "base_emerald.gba", 0xd774d0, 0x400
|
.incbin "data/graphics/pokemon/icons/question_mark_icon.4bpp"
|
||||||
|
|
||||||
.align 2, 0
|
.align 2, 0
|
||||||
|
|
||||||
gMonFootprint_QuestionMark: ; 8D778D0
|
gMonFootprint_QuestionMark: ; 8D778D0
|
||||||
.incbin "base_emerald.gba", 0xd778d0, 0x20
|
.incbin "data/graphics/pokemon/footprints/question_mark_footprint.1bpp"
|
||||||
|
|
||||||
gUnknown_08D778F0: ; 8D778F0
|
gUnknown_08D778F0: ; 8D778F0
|
||||||
.incbin "base_emerald.gba", 0xd778f0, 0xe8
|
.incbin "base_emerald.gba", 0xd778f0, 0xe8
|
||||||
@ -12615,7 +12615,7 @@ gUnknown_08D8FB9C: ; 8D8FB9C
|
|||||||
.align 2, 0
|
.align 2, 0
|
||||||
|
|
||||||
gMonIcon_Egg: ; 8D8FC74
|
gMonIcon_Egg: ; 8D8FC74
|
||||||
.incbin "base_emerald.gba", 0xd8fc74, 0x400
|
.incbin "data/graphics/pokemon/icons/egg_icon.4bpp"
|
||||||
|
|
||||||
.incbin "base_emerald.gba", 0xd90074, 0x1524
|
.incbin "base_emerald.gba", 0xd90074, 0x1524
|
||||||
|
|
||||||
@ -13178,7 +13178,9 @@ gUnknown_08DDE12C: ; 8DDE12C
|
|||||||
.incbin "base_emerald.gba", 0xdde12c, 0xcc
|
.incbin "base_emerald.gba", 0xdde12c, 0xcc
|
||||||
|
|
||||||
gMonIconPalettes: ; 8DDE1F8
|
gMonIconPalettes: ; 8DDE1F8
|
||||||
.incbin "base_emerald.gba", 0xdde1f8, 0x60
|
.incbin "data/graphics/pokemon/icon_palettes/icon_palette_0.gbapal"
|
||||||
|
.incbin "data/graphics/pokemon/icon_palettes/icon_palette_1.gbapal"
|
||||||
|
.incbin "data/graphics/pokemon/icon_palettes/icon_palette_2.gbapal"
|
||||||
|
|
||||||
gTitleScreenBgPalette: ; 8DDE258
|
gTitleScreenBgPalette: ; 8DDE258
|
||||||
.incbin "base_emerald.gba", 0xdde258, 0x1e0
|
.incbin "base_emerald.gba", 0xdde258, 0x1e0
|
||||||
|
BIN
data/graphics/pokemon/back_pics/abra_back_pic.png
Normal file
After Width: | Height: | Size: 616 B |
BIN
data/graphics/pokemon/back_pics/absol_back_pic.png
Normal file
After Width: | Height: | Size: 673 B |
BIN
data/graphics/pokemon/back_pics/aerodactyl_back_pic.png
Normal file
After Width: | Height: | Size: 602 B |
BIN
data/graphics/pokemon/back_pics/aggron_back_pic.png
Normal file
After Width: | Height: | Size: 860 B |
BIN
data/graphics/pokemon/back_pics/aipom_back_pic.png
Normal file
After Width: | Height: | Size: 592 B |
BIN
data/graphics/pokemon/back_pics/alakazam_back_pic.png
Normal file
After Width: | Height: | Size: 864 B |
BIN
data/graphics/pokemon/back_pics/altaria_back_pic.png
Normal file
After Width: | Height: | Size: 685 B |
BIN
data/graphics/pokemon/back_pics/ampharos_back_pic.png
Normal file
After Width: | Height: | Size: 714 B |
BIN
data/graphics/pokemon/back_pics/anorith_back_pic.png
Normal file
After Width: | Height: | Size: 445 B |
BIN
data/graphics/pokemon/back_pics/arbok_back_pic.png
Normal file
After Width: | Height: | Size: 509 B |
BIN
data/graphics/pokemon/back_pics/arcanine_back_pic.png
Normal file
After Width: | Height: | Size: 790 B |
BIN
data/graphics/pokemon/back_pics/ariados_back_pic.png
Normal file
After Width: | Height: | Size: 706 B |
BIN
data/graphics/pokemon/back_pics/armaldo_back_pic.png
Normal file
After Width: | Height: | Size: 898 B |
BIN
data/graphics/pokemon/back_pics/aron_back_pic.png
Normal file
After Width: | Height: | Size: 437 B |
BIN
data/graphics/pokemon/back_pics/articuno_back_pic.png
Normal file
After Width: | Height: | Size: 504 B |
BIN
data/graphics/pokemon/back_pics/azumarill_back_pic.png
Normal file
After Width: | Height: | Size: 541 B |
BIN
data/graphics/pokemon/back_pics/azurill_back_pic.png
Normal file
After Width: | Height: | Size: 601 B |
BIN
data/graphics/pokemon/back_pics/bagon_back_pic.png
Normal file
After Width: | Height: | Size: 574 B |
BIN
data/graphics/pokemon/back_pics/baltoy_back_pic.png
Normal file
After Width: | Height: | Size: 517 B |
BIN
data/graphics/pokemon/back_pics/banette_back_pic.png
Normal file
After Width: | Height: | Size: 503 B |
BIN
data/graphics/pokemon/back_pics/barboach_back_pic.png
Normal file
After Width: | Height: | Size: 551 B |
BIN
data/graphics/pokemon/back_pics/bayleef_back_pic.png
Normal file
After Width: | Height: | Size: 737 B |
BIN
data/graphics/pokemon/back_pics/beautifly_back_pic.png
Normal file
After Width: | Height: | Size: 771 B |
BIN
data/graphics/pokemon/back_pics/beedrill_back_pic.png
Normal file
After Width: | Height: | Size: 734 B |
BIN
data/graphics/pokemon/back_pics/beldum_back_pic.png
Normal file
After Width: | Height: | Size: 575 B |
BIN
data/graphics/pokemon/back_pics/bellossom_back_pic.png
Normal file
After Width: | Height: | Size: 633 B |
BIN
data/graphics/pokemon/back_pics/bellsprout_back_pic.png
Normal file
After Width: | Height: | Size: 529 B |
BIN
data/graphics/pokemon/back_pics/blastoise_back_pic.png
Normal file
After Width: | Height: | Size: 860 B |
BIN
data/graphics/pokemon/back_pics/blaziken_back_pic.png
Normal file
After Width: | Height: | Size: 835 B |
BIN
data/graphics/pokemon/back_pics/blissey_back_pic.png
Normal file
After Width: | Height: | Size: 566 B |
BIN
data/graphics/pokemon/back_pics/breloom_back_pic.png
Normal file
After Width: | Height: | Size: 825 B |
BIN
data/graphics/pokemon/back_pics/bulbasaur_back_pic.png
Normal file
After Width: | Height: | Size: 540 B |
BIN
data/graphics/pokemon/back_pics/butterfree_back_pic.png
Normal file
After Width: | Height: | Size: 850 B |
BIN
data/graphics/pokemon/back_pics/cacnea_back_pic.png
Normal file
After Width: | Height: | Size: 713 B |
BIN
data/graphics/pokemon/back_pics/cacturne_back_pic.png
Normal file
After Width: | Height: | Size: 653 B |
BIN
data/graphics/pokemon/back_pics/camerupt_back_pic.png
Normal file
After Width: | Height: | Size: 527 B |
BIN
data/graphics/pokemon/back_pics/carvanha_back_pic.png
Normal file
After Width: | Height: | Size: 648 B |
BIN
data/graphics/pokemon/back_pics/cascoon_back_pic.png
Normal file
After Width: | Height: | Size: 404 B |
After Width: | Height: | Size: 373 B |
BIN
data/graphics/pokemon/back_pics/castform_rainy_form_back_pic.png
Normal file
After Width: | Height: | Size: 495 B |
BIN
data/graphics/pokemon/back_pics/castform_snowy_form_back_pic.png
Normal file
After Width: | Height: | Size: 628 B |
BIN
data/graphics/pokemon/back_pics/castform_sunny_form_back_pic.png
Normal file
After Width: | Height: | Size: 559 B |
BIN
data/graphics/pokemon/back_pics/caterpie_back_pic.png
Normal file
After Width: | Height: | Size: 521 B |
BIN
data/graphics/pokemon/back_pics/celebi_back_pic.png
Normal file
After Width: | Height: | Size: 757 B |
BIN
data/graphics/pokemon/back_pics/chansey_back_pic.png
Normal file
After Width: | Height: | Size: 552 B |
BIN
data/graphics/pokemon/back_pics/charizard_back_pic.png
Normal file
After Width: | Height: | Size: 829 B |
BIN
data/graphics/pokemon/back_pics/charmander_back_pic.png
Normal file
After Width: | Height: | Size: 521 B |
BIN
data/graphics/pokemon/back_pics/charmeleon_back_pic.png
Normal file
After Width: | Height: | Size: 583 B |
BIN
data/graphics/pokemon/back_pics/chikorita_back_pic.png
Normal file
After Width: | Height: | Size: 569 B |
BIN
data/graphics/pokemon/back_pics/chimecho_back_pic.png
Normal file
After Width: | Height: | Size: 507 B |
BIN
data/graphics/pokemon/back_pics/chinchou_back_pic.png
Normal file
After Width: | Height: | Size: 637 B |
After Width: | Height: | Size: 397 B |
BIN
data/graphics/pokemon/back_pics/clamperl_back_pic.png
Normal file
After Width: | Height: | Size: 475 B |
BIN
data/graphics/pokemon/back_pics/claydol_back_pic.png
Normal file
After Width: | Height: | Size: 774 B |
BIN
data/graphics/pokemon/back_pics/clefable_back_pic.png
Normal file
After Width: | Height: | Size: 638 B |
BIN
data/graphics/pokemon/back_pics/clefairy_back_pic.png
Normal file
After Width: | Height: | Size: 561 B |
BIN
data/graphics/pokemon/back_pics/cleffa_back_pic.png
Normal file
After Width: | Height: | Size: 461 B |
BIN
data/graphics/pokemon/back_pics/cloyster_back_pic.png
Normal file
After Width: | Height: | Size: 769 B |
BIN
data/graphics/pokemon/back_pics/combusken_back_pic.png
Normal file
After Width: | Height: | Size: 812 B |
BIN
data/graphics/pokemon/back_pics/corphish_back_pic.png
Normal file
After Width: | Height: | Size: 662 B |
BIN
data/graphics/pokemon/back_pics/corsola_back_pic.png
Normal file
After Width: | Height: | Size: 525 B |
BIN
data/graphics/pokemon/back_pics/cradily_back_pic.png
Normal file
After Width: | Height: | Size: 824 B |
BIN
data/graphics/pokemon/back_pics/crawdaunt_back_pic.png
Normal file
After Width: | Height: | Size: 787 B |
BIN
data/graphics/pokemon/back_pics/crobat_back_pic.png
Normal file
After Width: | Height: | Size: 600 B |
BIN
data/graphics/pokemon/back_pics/croconaw_back_pic.png
Normal file
After Width: | Height: | Size: 709 B |
BIN
data/graphics/pokemon/back_pics/cubone_back_pic.png
Normal file
After Width: | Height: | Size: 673 B |
BIN
data/graphics/pokemon/back_pics/cyndaquil_back_pic.png
Normal file
After Width: | Height: | Size: 670 B |
BIN
data/graphics/pokemon/back_pics/delcatty_back_pic.png
Normal file
After Width: | Height: | Size: 737 B |
BIN
data/graphics/pokemon/back_pics/delibird_back_pic.png
Normal file
After Width: | Height: | Size: 786 B |
BIN
data/graphics/pokemon/back_pics/deoxys_back_pic.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
data/graphics/pokemon/back_pics/dewgong_back_pic.png
Normal file
After Width: | Height: | Size: 523 B |
BIN
data/graphics/pokemon/back_pics/diglett_back_pic.png
Normal file
After Width: | Height: | Size: 409 B |
BIN
data/graphics/pokemon/back_pics/ditto_back_pic.png
Normal file
After Width: | Height: | Size: 399 B |
BIN
data/graphics/pokemon/back_pics/dodrio_back_pic.png
Normal file
After Width: | Height: | Size: 910 B |
BIN
data/graphics/pokemon/back_pics/doduo_back_pic.png
Normal file
After Width: | Height: | Size: 651 B |
BIN
data/graphics/pokemon/back_pics/donphan_back_pic.png
Normal file
After Width: | Height: | Size: 571 B |
After Width: | Height: | Size: 308 B |
BIN
data/graphics/pokemon/back_pics/dragonair_back_pic.png
Normal file
After Width: | Height: | Size: 672 B |
BIN
data/graphics/pokemon/back_pics/dragonite_back_pic.png
Normal file
After Width: | Height: | Size: 622 B |
BIN
data/graphics/pokemon/back_pics/dratini_back_pic.png
Normal file
After Width: | Height: | Size: 525 B |
BIN
data/graphics/pokemon/back_pics/drowzee_back_pic.png
Normal file
After Width: | Height: | Size: 452 B |
BIN
data/graphics/pokemon/back_pics/dugtrio_back_pic.png
Normal file
After Width: | Height: | Size: 541 B |
BIN
data/graphics/pokemon/back_pics/dunsparce_back_pic.png
Normal file
After Width: | Height: | Size: 593 B |
BIN
data/graphics/pokemon/back_pics/dusclops_back_pic.png
Normal file
After Width: | Height: | Size: 559 B |
BIN
data/graphics/pokemon/back_pics/duskull_back_pic.png
Normal file
After Width: | Height: | Size: 537 B |
BIN
data/graphics/pokemon/back_pics/dustox_back_pic.png
Normal file
After Width: | Height: | Size: 481 B |
BIN
data/graphics/pokemon/back_pics/eevee_back_pic.png
Normal file
After Width: | Height: | Size: 641 B |
BIN
data/graphics/pokemon/back_pics/ekans_back_pic.png
Normal file
After Width: | Height: | Size: 616 B |
BIN
data/graphics/pokemon/back_pics/electabuzz_back_pic.png
Normal file
After Width: | Height: | Size: 611 B |
BIN
data/graphics/pokemon/back_pics/electrike_back_pic.png
Normal file
After Width: | Height: | Size: 499 B |
BIN
data/graphics/pokemon/back_pics/electrode_back_pic.png
Normal file
After Width: | Height: | Size: 477 B |
BIN
data/graphics/pokemon/back_pics/elekid_back_pic.png
Normal file
After Width: | Height: | Size: 660 B |
BIN
data/graphics/pokemon/back_pics/entei_back_pic.png
Normal file
After Width: | Height: | Size: 859 B |
BIN
data/graphics/pokemon/back_pics/espeon_back_pic.png
Normal file
After Width: | Height: | Size: 554 B |
BIN
data/graphics/pokemon/back_pics/exeggcute_back_pic.png
Normal file
After Width: | Height: | Size: 597 B |