summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-08-12 20:59:54 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2020-08-12 20:59:54 -0400
commitf65448a4c0d6c1b3877ceb8ad138e40669f97c86 (patch)
tree675bac83427429df325e0ae217dc63321a15a79e
parent959b8a924478df99506361c872ccdb97193b43a5 (diff)
Factor out gfx/pack/pack_menu.tilemap
-rw-r--r--engine/items/pack.asm20
-rw-r--r--gfx/pack/pack_menu.tilemapbin0 -> 60 bytes
2 files changed, 3 insertions, 17 deletions
diff --git a/engine/items/pack.asm b/engine/items/pack.asm
index bde5685cc..0aeb39843 100644
--- a/engine/items/pack.asm
+++ b/engine/items/pack.asm
@@ -1409,23 +1409,9 @@ DrawPocketName:
jr nz, .row
ret
-.tilemap
-; ITEM_POCKET
- db $00, $04, $04, $04, $01 ; top border
- db $06, $07, $08, $09, $0a ; Items
- db $02, $05, $05, $05, $03 ; bottom border
-; BALL_POCKET
- db $00, $04, $04, $04, $01 ; top border
- db $15, $16, $17, $18, $19 ; Balls
- db $02, $05, $05, $05, $03 ; bottom border
-; KEY_ITEM_POCKET
- db $00, $04, $04, $04, $01 ; top border
- db $0b, $0c, $0d, $0e, $0f ; Key Items
- db $02, $05, $05, $05, $03 ; bottom border
-; TM_HM_POCKET
- db $00, $04, $04, $04, $01 ; top border
- db $10, $11, $12, $13, $14 ; TM/HM
- db $02, $05, $05, $05, $03 ; bottom border
+.tilemap: ; 5x12
+; the 5x3 pieces correspond to *_POCKET constants
+INCBIN "gfx/pack/pack_menu.tilemap"
Pack_GetItemName:
ld a, [wCurItem]
diff --git a/gfx/pack/pack_menu.tilemap b/gfx/pack/pack_menu.tilemap
new file mode 100644
index 000000000..6c29f22c6
--- /dev/null
+++ b/gfx/pack/pack_menu.tilemap
Binary files differ