pokemon PNGs and palettes

This commit is contained in:
YamaArashi 2015-11-13 21:57:22 -08:00
parent 3d1b6597f3
commit 4c733f3811
2871 changed files with 19547 additions and 2830 deletions

9
.gitattributes vendored Normal file
View 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
View File

@ -0,0 +1,12 @@
*.exe
*.o
*.elf
*.gba
*.1bpp
*.4bpp
*.8bpp
*.gbapal
*.lz
pokeas
pokeld
pokeobjcopy

67
Makefile Normal file
View 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

View File

@ -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

View File

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 616 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 602 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 860 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 592 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 864 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 685 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 714 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 445 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 509 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 790 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 706 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 898 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 437 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 504 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 541 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 601 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 574 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 517 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 503 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 551 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 737 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 771 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 734 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 575 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 633 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 529 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 860 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 835 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 566 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 825 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 540 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 850 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 713 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 527 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 648 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 404 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 373 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 495 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 628 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 559 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 521 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 757 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 552 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 829 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 521 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 583 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 569 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 507 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 637 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 397 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 475 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 774 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 638 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 561 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 461 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 769 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 812 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 662 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 525 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 824 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 787 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 600 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 709 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 670 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 737 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 786 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 523 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 409 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 399 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 910 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 651 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 571 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 308 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 672 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 622 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 525 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 452 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 541 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 593 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 559 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 537 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 481 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 641 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 616 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 611 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 499 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 477 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 660 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 859 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 554 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 597 B

Some files were not shown because too many files have changed in this diff Show More