dump some sprite sets (#201)

* dump some sprite sets

* extract all sprite sets

* add pokeball sprites

* add all the slot options images
This commit is contained in:
Wendy Moniuk 2026-02-28 13:26:23 -05:00 committed by GitHub
parent fecffc2c90
commit 97bf71ef12
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
106 changed files with 5234 additions and 69 deletions

View File

@ -1104,10 +1104,109 @@ gUnknown_083A8ACC:: @ 0x083A8ACC
.incbin "baserom.gba", 0x3A8ACC, 0x420
gUnknown_083A8EEC:: @ 0x083A8EEC
.incbin "baserom.gba", 0x3A8EEC, 0x12280
.incbin "graphics/slot_options/slot_options_1.4bpp"
.incbin "graphics/slot_options/slot_options_2.4bpp"
.incbin "graphics/slot_options/slot_options_3.4bpp"
.incbin "graphics/slot_options/slot_options_4.4bpp"
.incbin "graphics/slot_options/slot_options_5.4bpp"
.incbin "graphics/slot_options/slot_options_6.4bpp"
.incbin "graphics/slot_options/slot_options_7.4bpp"
.incbin "graphics/slot_options/slot_options_8.4bpp"
.incbin "graphics/slot_options/slot_options_9.4bpp"
.incbin "graphics/slot_options/slot_options_10.4bpp"
.incbin "graphics/slot_options/slot_options_11.4bpp"
.incbin "graphics/slot_options/slot_options_12.4bpp"
.incbin "graphics/slot_options/slot_options_13.4bpp"
.incbin "graphics/slot_options/slot_options_14.4bpp"
.incbin "graphics/slot_options/slot_options_15.4bpp"
.incbin "graphics/slot_options/slot_options_16.4bpp"
.incbin "graphics/slot_options/slot_options_17.4bpp"
.incbin "graphics/slot_options/slot_options_18.4bpp"
.incbin "graphics/slot_options/slot_options_19.4bpp"
.incbin "graphics/slot_options/slot_options_20.4bpp"
.incbin "graphics/slot_options/slot_options_21.4bpp"
.incbin "graphics/slot_options/slot_options_22.4bpp"
.incbin "graphics/slot_options/slot_options_23.4bpp"
.incbin "graphics/slot_options/slot_options_24.4bpp"
.incbin "graphics/slot_options/slot_options_25.4bpp"
.incbin "graphics/slot_options/slot_options_26.4bpp"
.incbin "graphics/slot_options/slot_options_27.4bpp"
.incbin "graphics/slot_options/slot_options_28.4bpp"
.incbin "graphics/slot_options/slot_options_29.4bpp"
.incbin "graphics/slot_options/slot_options_30.4bpp"
.incbin "graphics/slot_options/slot_options_31.4bpp"
.incbin "graphics/slot_options/slot_options_32.4bpp"
.incbin "graphics/slot_options/slot_options_33.4bpp"
.incbin "graphics/slot_options/slot_options_34.4bpp"
.incbin "graphics/slot_options/slot_options_35.4bpp"
.incbin "graphics/slot_options/slot_options_36.4bpp"
.incbin "graphics/slot_options/slot_options_37.4bpp"
.incbin "graphics/slot_options/slot_options_38.4bpp"
.incbin "graphics/slot_options/slot_options_39.4bpp"
.incbin "graphics/slot_options/slot_options_40.4bpp"
.incbin "graphics/slot_options/slot_options_41.4bpp"
.incbin "graphics/slot_options/slot_options_42.4bpp"
.incbin "graphics/slot_options/slot_options_43.4bpp"
.incbin "graphics/slot_options/slot_options_44.4bpp"
.incbin "graphics/slot_options/slot_options_45.4bpp"
.incbin "graphics/slot_options/slot_options_46.4bpp"
.incbin "graphics/slot_options/slot_options_47.4bpp"
.incbin "graphics/slot_options/slot_options_48.4bpp"
.incbin "graphics/slot_options/slot_options_49.4bpp"
.incbin "graphics/slot_options/slot_options_50.4bpp"
.incbin "graphics/slot_options/slot_options_51.4bpp"
.incbin "graphics/slot_options/slot_options_52.4bpp"
.incbin "graphics/slot_options/slot_options_53.4bpp"
.incbin "graphics/slot_options/slot_options_54.4bpp"
.incbin "graphics/slot_options/slot_options_55.4bpp"
.incbin "graphics/slot_options/slot_options_56.4bpp"
.incbin "graphics/slot_options/slot_options_57.4bpp"
.incbin "graphics/slot_options/slot_options_58.4bpp"
.incbin "graphics/slot_options/slot_options_59.4bpp"
.incbin "graphics/slot_options/slot_options_60.4bpp"
.incbin "graphics/slot_options/slot_options_61.4bpp"
.incbin "graphics/slot_options/slot_options_62.4bpp"
.incbin "graphics/slot_options/slot_options_63.4bpp"
.incbin "graphics/slot_options/slot_options_64.4bpp"
.incbin "graphics/slot_options/slot_options_65.4bpp"
.incbin "graphics/slot_options/slot_options_66.4bpp"
.incbin "graphics/slot_options/slot_options_67.4bpp"
.incbin "graphics/slot_options/slot_options_68.4bpp"
.incbin "graphics/slot_options/slot_options_69.4bpp"
.incbin "graphics/slot_options/slot_options_70.4bpp"
.incbin "graphics/slot_options/slot_options_71.4bpp"
.incbin "graphics/slot_options/slot_options_72.4bpp"
.incbin "graphics/slot_options/slot_options_73.4bpp"
.incbin "graphics/slot_options/slot_options_74.4bpp"
.incbin "graphics/slot_options/slot_options_75.4bpp"
.incbin "graphics/slot_options/slot_options_76.4bpp"
.incbin "graphics/slot_options/slot_options_77.4bpp"
.incbin "graphics/slot_options/slot_options_78.4bpp"
.incbin "graphics/slot_options/slot_options_79.4bpp"
.incbin "graphics/slot_options/slot_options_80.4bpp"
.incbin "graphics/slot_options/slot_options_81.4bpp"
.incbin "graphics/slot_options/slot_options_82.4bpp"
.incbin "graphics/slot_options/slot_options_83.4bpp"
.incbin "graphics/slot_options/slot_options_84.4bpp"
.incbin "graphics/slot_options/slot_options_85.4bpp"
.incbin "graphics/slot_options/slot_options_86.4bpp"
.incbin "graphics/slot_options/slot_options_87.4bpp"
.incbin "graphics/slot_options/slot_options_88.4bpp"
.incbin "graphics/slot_options/slot_options_89.4bpp"
.incbin "graphics/slot_options/slot_options_90.4bpp"
.incbin "graphics/slot_options/slot_options_91.4bpp"
.incbin "graphics/slot_options/slot_options_92.4bpp"
.incbin "graphics/slot_options/slot_options_93.4bpp"
.incbin "graphics/slot_options/slot_options_94.4bpp"
.incbin "graphics/slot_options/slot_options_95.4bpp"
.incbin "graphics/slot_options/slot_options_96.4bpp"
.incbin "graphics/slot_options/slot_options_97.4bpp"
gUnknown_083BB16C:: @ 0x083BB16C
.incbin "baserom.gba", 0x3BB16C, 0x2200
.incbin "graphics/stage/main/pokeball_regular.4bpp"
.incbin "graphics/stage/main/pokeball_great.4bpp"
.incbin "graphics/stage/main/pokeball_ultra.4bpp"
.incbin "graphics/stage/main/pokeball_master.4bpp"
gUnknown_083BD36C:: @ 0x083BD36C
.incbin "baserom.gba", 0x3BD36C, 0xC00

File diff suppressed because it is too large Load Diff

View File

@ -47,19 +47,27 @@ def hex_or_signed(val):
return f"0x{val:X}"
def main():
if len(sys.argv) != 4:
print(f"Usage: {sys.argv[0]} <file> <offset> <length>")
if len(sys.argv) != 5:
print(f"Usage: {sys.argv[0]} <file> <offset> <length> <array_pack>")
sys.exit(1)
filename = sys.argv[1]
offset = int(sys.argv[2], 0)
length = int(sys.argv[3], 0)
array_pack = sys.argv[4]
if array_pack == "0":
dataSize = 6
elif array_pack == "1":
dataSize = 8
else:
print("Error: array_pack must be 0 or 1")
sys.exit(1)
with open(filename, 'rb') as f:
f.seek(offset)
data = f.read(length)
if len(data) % 6 != 0:
print("Error: length must be a multiple of 6")
if len(data) % dataSize != 0:
print("Error: length must be a multiple of 6 or 8 depending on array_pack")
sys.exit(1)
for i in range(0, len(data), 6):
for i in range(0, len(data), dataSize):
e = parse_oam_entry(data[i:i+6])
print(
" packed_sprite_oam x={x}, y={y}, affineMode={affineMode}, objMode={objMode}, mosaic={mosaic}, "
@ -82,6 +90,8 @@ def main():
paletteNum=hex(e['paletteNum']),
)
)
if array_pack == "1":
print(".2byte 0")
if __name__ == "__main__":
main()

View File

@ -0,0 +1,401 @@
{
"kind": "gfx-config",
"version": 1,
"defaults": {
"mwidth": 2,
"mheight": 2,
"oam": true,
"width": 6,
"palette": ""
},
"files": [
{
"gfx_filename": "slot_options_1",
"width": 6
},
{
"gfx_filename": "slot_options_2",
"width": 6
},
{
"gfx_filename": "slot_options_3",
"width": 6
},
{
"gfx_filename": "slot_options_4",
"width": 6
},
{
"gfx_filename": "slot_options_5",
"width": 6
},
{
"gfx_filename": "slot_options_6",
"width": 6
},
{
"gfx_filename": "slot_options_7",
"width": 6
},
{
"gfx_filename": "slot_options_8",
"width": 6
},
{
"gfx_filename": "slot_options_9",
"width": 6
},
{
"gfx_filename": "slot_options_10",
"width": 6
},
{
"gfx_filename": "slot_options_11",
"width": 6
},
{
"gfx_filename": "slot_options_12",
"width": 6
},
{
"gfx_filename": "slot_options_13",
"width": 6
},
{
"gfx_filename": "slot_options_14",
"width": 6
},
{
"gfx_filename": "slot_options_15",
"width": 6
},
{
"gfx_filename": "slot_options_16",
"width": 6
},
{
"gfx_filename": "slot_options_17",
"width": 6
},
{
"gfx_filename": "slot_options_18",
"width": 6
},
{
"gfx_filename": "slot_options_19",
"width": 6
},
{
"gfx_filename": "slot_options_20",
"width": 6
},
{
"gfx_filename": "slot_options_21",
"width": 6
},
{
"gfx_filename": "slot_options_22",
"width": 6
},
{
"gfx_filename": "slot_options_23",
"width": 6
},
{
"gfx_filename": "slot_options_24",
"width": 6
},
{
"gfx_filename": "slot_options_25",
"width": 6
},
{
"gfx_filename": "slot_options_26",
"width": 6
},
{
"gfx_filename": "slot_options_27",
"width": 6
},
{
"gfx_filename": "slot_options_28",
"width": 6
},
{
"gfx_filename": "slot_options_29",
"width": 6
},
{
"gfx_filename": "slot_options_30",
"width": 6
},
{
"gfx_filename": "slot_options_31",
"width": 6
},
{
"gfx_filename": "slot_options_32",
"width": 6
},
{
"gfx_filename": "slot_options_33",
"width": 6
},
{
"gfx_filename": "slot_options_34",
"width": 6
},
{
"gfx_filename": "slot_options_35",
"width": 6
},
{
"gfx_filename": "slot_options_36",
"width": 6
},
{
"gfx_filename": "slot_options_37",
"width": 6
},
{
"gfx_filename": "slot_options_38",
"width": 6
},
{
"gfx_filename": "slot_options_39",
"width": 6
},
{
"gfx_filename": "slot_options_40",
"width": 6
},
{
"gfx_filename": "slot_options_41",
"width": 6
},
{
"gfx_filename": "slot_options_42",
"width": 6
},
{
"gfx_filename": "slot_options_43",
"width": 6
},
{
"gfx_filename": "slot_options_44",
"width": 6
},
{
"gfx_filename": "slot_options_45",
"width": 6
},
{
"gfx_filename": "slot_options_46",
"width": 6
},
{
"gfx_filename": "slot_options_47",
"width": 6
},
{
"gfx_filename": "slot_options_48",
"width": 6
},
{
"gfx_filename": "slot_options_49",
"width": 6
},
{
"gfx_filename": "slot_options_50",
"width": 6
},
{
"gfx_filename": "slot_options_51",
"width": 6
},
{
"gfx_filename": "slot_options_52",
"width": 6
},
{
"gfx_filename": "slot_options_53",
"width": 6
},
{
"gfx_filename": "slot_options_54",
"width": 6
},
{
"gfx_filename": "slot_options_55",
"width": 6
},
{
"gfx_filename": "slot_options_56",
"width": 6
},
{
"gfx_filename": "slot_options_57",
"width": 6
},
{
"gfx_filename": "slot_options_58",
"width": 6
},
{
"gfx_filename": "slot_options_59",
"width": 6
},
{
"gfx_filename": "slot_options_60",
"width": 6
},
{
"gfx_filename": "slot_options_61",
"width": 6
},
{
"gfx_filename": "slot_options_62",
"width": 6
},
{
"gfx_filename": "slot_options_63",
"width": 6
},
{
"gfx_filename": "slot_options_64",
"width": 6
},
{
"gfx_filename": "slot_options_65",
"width": 6
},
{
"gfx_filename": "slot_options_66",
"width": 6
},
{
"gfx_filename": "slot_options_67",
"width": 6
},
{
"gfx_filename": "slot_options_68",
"width": 6
},
{
"gfx_filename": "slot_options_69",
"width": 6
},
{
"gfx_filename": "slot_options_70",
"width": 6
},
{
"gfx_filename": "slot_options_71",
"width": 6
},
{
"gfx_filename": "slot_options_72",
"width": 6
},
{
"gfx_filename": "slot_options_73",
"width": 6
},
{
"gfx_filename": "slot_options_74",
"width": 6
},
{
"gfx_filename": "slot_options_75",
"width": 6
},
{
"gfx_filename": "slot_options_76",
"width": 6
},
{
"gfx_filename": "slot_options_77",
"width": 6
},
{
"gfx_filename": "slot_options_78",
"width": 6
},
{
"gfx_filename": "slot_options_79",
"width": 6
},
{
"gfx_filename": "slot_options_80",
"width": 6
},
{
"gfx_filename": "slot_options_81",
"width": 6
},
{
"gfx_filename": "slot_options_82",
"width": 6
},
{
"gfx_filename": "slot_options_83",
"width": 6
},
{
"gfx_filename": "slot_options_84",
"width": 6
},
{
"gfx_filename": "slot_options_85",
"width": 6
},
{
"gfx_filename": "slot_options_86",
"width": 6
},
{
"gfx_filename": "slot_options_87",
"width": 6
},
{
"gfx_filename": "slot_options_88",
"width": 6
},
{
"gfx_filename": "slot_options_89",
"width": 6
},
{
"gfx_filename": "slot_options_90",
"width": 6
},
{
"gfx_filename": "slot_options_91",
"width": 6
},
{
"gfx_filename": "slot_options_92",
"width": 6
},
{
"gfx_filename": "slot_options_93",
"width": 6
},
{
"gfx_filename": "slot_options_94",
"width": 6
},
{
"gfx_filename": "slot_options_95",
"width": 6
},
{
"gfx_filename": "slot_options_96",
"width": 6
},
{
"gfx_filename": "slot_options_97",
"width": 6
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 528 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 412 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 453 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 440 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 468 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 504 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 459 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 459 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 478 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 506 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 454 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 440 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 508 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 500 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 444 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 304 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 392 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 350 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 452 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 399 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 474 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 369 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 525 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 374 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 320 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 324 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 580 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 535 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 483 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 477 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 531 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 425 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 385 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 431 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 388 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 410 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 381 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 516 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 495 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 477 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 478 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 419 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 406 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 439 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 535 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 513 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 496 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 529 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 488 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 511 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 488 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 516 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 364 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 352 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 418 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 428 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 395 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 413 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 394 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 412 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 393 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 394 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 400 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 401 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 399 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 403 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 578 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 402 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 402 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 400 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 392 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 387 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 394 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 392 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 403 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 403 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 395 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 596 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 395 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 397 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 394 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 560 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 460 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 554 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 461 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 551 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 455 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 559 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 409 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 455 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 548 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 451 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 339 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 291 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 337 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 305 B

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