diff options
| author | Marcus Huderle <huderlem@gmail.com> | 2017-04-29 18:28:03 -0700 | 
|---|---|---|
| committer | Marcus Huderle <huderlem@gmail.com> | 2017-04-29 18:28:03 -0700 | 
| commit | d7403bcbf7af7a1f859ca8988809a53f4a7359cc (patch) | |
| tree | 6dab61c50d4c6d183a25e7e8cc530b89896ad577 | |
| parent | 5c424364d833de0b209d26151109c1313b40b827 (diff) | |
Fixup Haunter gfx
| -rw-r--r-- | gfx/stage/diglett_bonus/diglett_bonus_base_gameboycolor.png | bin | 1415 -> 1279 bytes | |||
| -rw-r--r-- | gfx/stage/gengar_bonus/haunter.interleave.png | bin | 0 -> 501 bytes | |||
| -rw-r--r-- | gfx/stage/gengar_bonus/haunter_1.png | bin | 110 -> 0 bytes | |||
| -rw-r--r-- | gfx/stage/gengar_bonus/haunter_2.w32.interleave.png | bin | 247 -> 0 bytes | |||
| -rwxr-xr-x | macros.asm | 11 | ||||
| -rwxr-xr-x | main.asm | 51 | 
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.pngBinary files differ index c9355e7..ccf6fe1 100644 --- a/gfx/stage/diglett_bonus/diglett_bonus_base_gameboycolor.png +++ b/gfx/stage/diglett_bonus/diglett_bonus_base_gameboycolor.png diff --git a/gfx/stage/gengar_bonus/haunter.interleave.png b/gfx/stage/gengar_bonus/haunter.interleave.pngBinary files differ new file mode 100644 index 0000000..08cae16 --- /dev/null +++ b/gfx/stage/gengar_bonus/haunter.interleave.png diff --git a/gfx/stage/gengar_bonus/haunter_1.png b/gfx/stage/gengar_bonus/haunter_1.pngBinary files differ deleted file mode 100644 index d939bda..0000000 --- a/gfx/stage/gengar_bonus/haunter_1.png +++ /dev/null diff --git a/gfx/stage/gengar_bonus/haunter_2.w32.interleave.png b/gfx/stage/gengar_bonus/haunter_2.w32.interleave.pngBinary files differ deleted file mode 100644 index 0131cc2..0000000 --- a/gfx/stage/gengar_bonus/haunter_2.w32.interleave.png +++ /dev/null @@ -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 @@ -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] | 
