summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Huderle <huderlem@gmail.com>2017-04-29 18:28:03 -0700
committerMarcus Huderle <huderlem@gmail.com>2017-04-29 18:28:03 -0700
commitd7403bcbf7af7a1f859ca8988809a53f4a7359cc (patch)
tree6dab61c50d4c6d183a25e7e8cc530b89896ad577
parent5c424364d833de0b209d26151109c1313b40b827 (diff)
Fixup Haunter gfx
-rw-r--r--gfx/stage/diglett_bonus/diglett_bonus_base_gameboycolor.pngbin1415 -> 1279 bytes
-rw-r--r--gfx/stage/gengar_bonus/haunter.interleave.pngbin0 -> 501 bytes
-rw-r--r--gfx/stage/gengar_bonus/haunter_1.pngbin110 -> 0 bytes
-rw-r--r--gfx/stage/gengar_bonus/haunter_2.w32.interleave.pngbin247 -> 0 bytes
-rwxr-xr-xmacros.asm11
-rwxr-xr-xmain.asm51
6 files changed, 41 insertions, 21 deletions
diff --git a/gfx/stage/diglett_bonus/diglett_bonus_base_gameboycolor.png b/gfx/stage/diglett_bonus/diglett_bonus_base_gameboycolor.png
index c9355e7..ccf6fe1 100644
--- a/gfx/stage/diglett_bonus/diglett_bonus_base_gameboycolor.png
+++ b/gfx/stage/diglett_bonus/diglett_bonus_base_gameboycolor.png
Binary files differ
diff --git a/gfx/stage/gengar_bonus/haunter.interleave.png b/gfx/stage/gengar_bonus/haunter.interleave.png
new file mode 100644
index 0000000..08cae16
--- /dev/null
+++ b/gfx/stage/gengar_bonus/haunter.interleave.png
Binary files differ
diff --git a/gfx/stage/gengar_bonus/haunter_1.png b/gfx/stage/gengar_bonus/haunter_1.png
deleted file mode 100644
index d939bda..0000000
--- a/gfx/stage/gengar_bonus/haunter_1.png
+++ /dev/null
Binary files differ
diff --git a/gfx/stage/gengar_bonus/haunter_2.w32.interleave.png b/gfx/stage/gengar_bonus/haunter_2.w32.interleave.png
deleted file mode 100644
index 0131cc2..0000000
--- a/gfx/stage/gengar_bonus/haunter_2.w32.interleave.png
+++ /dev/null
Binary files differ
diff --git a/macros.asm b/macros.asm
index 02d2e1f..246e003 100755
--- a/macros.asm
+++ b/macros.asm
@@ -123,6 +123,17 @@ VIDEO_DATA_TILES: MACRO
ENDM
;\1 = pointer to 2bpp tile data
+;\2 = bank of data
+;\3 = destination for tile data in VRAM
+;\4 = size of 2bpp tile data to copy
+VIDEO_DATA_TILES_BANK: MACRO
+ dw \1
+ db \2
+ dw \3
+ dw (\4 << 2)
+ ENDM
+
+;\1 = pointer to 2bpp tile data
;\2 = destination for tile data in VRAM
;\3 = size of 2bpp tile data to copy
VIDEO_DATA_TILES_BANK2: MACRO
diff --git a/main.asm b/main.asm
index 0c4a1ad..e558ef0 100755
--- a/main.asm
+++ b/main.asm
@@ -8099,16 +8099,16 @@ StageBlueFieldBottomGfx_GameBoyColor: ; 0xe9bc
db $FF, $FF ; terminators
StageGengarBonusGfx_GameBoy: ; 0xea12
- VIDEO_DATA_TILES Alphabet1Gfx, vTilesOB, $1a0
- VIDEO_DATA_TILES PinballPokeballGfx, vTilesOB + $400, $320
- VIDEO_DATA_TILES GengarBonusBaseGameBoyGfx, vTilesSH, $1000
- VIDEO_DATA_TILES GengarBonusGastlyGfx, vTilesSH + $100, $180
- VIDEO_DATA_TILES GengarBonusHaunter1Gfx, vTilesSH + $280, $20
- VIDEO_DATA_TILES GengarBonusHaunter2Gfx, vTilesOB + $1a0, $100
- VIDEO_DATA_TILES GengarBonusGengar1Gfx, vTilesOB + $2a0, $160
- VIDEO_DATA_TILES GengarBonusGengar2Gfx, vTilesOB + $7a0, $60
- VIDEO_DATA_TILES GengarBonusGengar3Gfx, vTilesSH + $2a0, $2a0
- VIDEO_DATA_TILEMAP GengarBonusTilemap_GameBoy, vBGMap, $400
+ VIDEO_DATA_TILES Alphabet1Gfx, vTilesOB, $1a0
+ VIDEO_DATA_TILES PinballPokeballGfx, vTilesOB + $400, $320
+ VIDEO_DATA_TILES GengarBonusBaseGameBoyGfx, vTilesSH, $1000
+ VIDEO_DATA_TILES GengarBonusGastlyGfx, vTilesSH + $100, $180
+ VIDEO_DATA_TILES_BANK GengarBonusHaunterGfx + $180, Bank(GengarBonusHaunterGfx), vTilesSH + $280, $20
+ VIDEO_DATA_TILES_BANK GengarBonusHaunterGfx + $1a0, Bank(GengarBonusHaunterGfx), vTilesOB + $1a0, $100
+ VIDEO_DATA_TILES GengarBonusGengar1Gfx, vTilesOB + $2a0, $160
+ VIDEO_DATA_TILES GengarBonusGengar2Gfx, vTilesOB + $7a0, $60
+ VIDEO_DATA_TILES GengarBonusGengar3Gfx, vTilesSH + $2a0, $2a0
+ VIDEO_DATA_TILEMAP GengarBonusTilemap_GameBoy, vBGMap, $400
db $FF, $FF ; terminators
StageGengarBonusGfx_GameBoyColor: ; 0xea5a
@@ -8116,8 +8116,8 @@ StageGengarBonusGfx_GameBoyColor: ; 0xea5a
VIDEO_DATA_TILES StageSharedPikaBoltGfx, vTilesOB + $3c0, $440
VIDEO_DATA_TILES GengarBonusBaseGameBoyColorGfx, vTilesSH, $1000
VIDEO_DATA_TILES GengarBonusGastlyGfx, vTilesSH + $100, $180
- VIDEO_DATA_TILES GengarBonusHaunter1Gfx, vTilesSH + $280, $20
- VIDEO_DATA_TILES GengarBonusHaunter2Gfx, vTilesOB + $1a0, $100
+ VIDEO_DATA_TILES_BANK GengarBonusHaunterGfx + $180, Bank(GengarBonusHaunterGfx), vTilesSH + $280, $20
+ VIDEO_DATA_TILES_BANK GengarBonusHaunterGfx + $1a0, Bank(GengarBonusHaunterGfx), vTilesOB + $1a0, $100
VIDEO_DATA_TILES GengarBonusGengar1Gfx, vTilesOB + $2a0, $160
VIDEO_DATA_TILES GengarBonusGengar2Gfx, vTilesOB + $7a0, $60
VIDEO_DATA_TILES GengarBonusGengar3Gfx, vTilesSH + $2a0, $2a0
@@ -18687,7 +18687,7 @@ Func_19104: ; 0x19104
sla a
ld c, a
ld b, $0
- ld hl, Data_19145
+ ld hl, GengarBonusStageHaunterGfxTable
add hl, bc
ld a, [hli]
ld c, a
@@ -18700,7 +18700,7 @@ Func_19104: ; 0x19104
ld a, [hli]
ld h, [hl]
ld l, a
- ld a, $21
+ ld a, Bank(GengarBonusHaunterGfx)
call LoadOrCopyVRAMData
ld a, $4
ld [wd674], a
@@ -18715,8 +18715,20 @@ Func_19104: ; 0x19104
scf
ret
-Data_19145:
- dr $19145, $19185
+GengarBonusStageHaunterGfxTable: ; 0x19145
+; Graphics data for Haunter.
+; First word: length in bytes
+; Second word: destination VRAM address
+; Third word: graphics data
+; Fourth word: unused
+ dw $60, vTilesSH tile $10, GengarBonusHaunterGfx, $0000
+ dw $60, vTilesSH tile $16, GengarBonusHaunterGfx + $60, $0000
+ dw $60, vTilesSH tile $1c, GengarBonusHaunterGfx + $c0, $0000
+ dw $60, vTilesSH tile $22, GengarBonusHaunterGfx + $120, $0000
+ dw $20, vTilesSH tile $28, GengarBonusHaunterGfx + $180, $0000
+ dw $40, vTilesOB tile $1a, GengarBonusHaunterGfx + $1a0, $0000
+ dw $60, vTilesOB tile $1e, GengarBonusHaunterGfx + $1e0, $0000
+ dw $60, vTilesOB tile $24, GengarBonusHaunterGfx + $240, $0000
Func_19185: ; 0x19185
ld de, wd698
@@ -34432,12 +34444,9 @@ INCLUDE "data/mon_gfx/mon_animated_pics_3.asm"
DiglettBonusBaseGameBoyColorGfx: ; 0x87000
INCBIN "gfx/stage/diglett_bonus/diglett_bonus_base_gameboycolor.2bpp"
- dr $87e00, $87e80
-GengarBonusHaunter1Gfx: ; 0x87e80
- INCBIN "gfx/stage/gengar_bonus/haunter_1.2bpp"
-GengarBonusHaunter2Gfx: ; 0x87ea0
- INCBIN "gfx/stage/gengar_bonus/haunter_2.w32.interleave.2bpp"
+GengarBonusHaunterGfx: ; 0x87d00
+ INCBIN "gfx/stage/gengar_bonus/haunter.interleave.2bpp"
SECTION "bank22", ROMX, BANK[$22]