diff options
-rw-r--r-- | Increase-Pokémon-sprite-animation-size.md | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Increase-Pokémon-sprite-animation-size.md b/Increase-Pokémon-sprite-animation-size.md index 7f70569..1d5cbea 100644 --- a/Increase-Pokémon-sprite-animation-size.md +++ b/Increase-Pokémon-sprite-animation-size.md @@ -75,7 +75,7 @@ Edit [sram.asm](../blob/master/sram.asm): sScratch:: ds $600 ; a000 + +NEXTU ; a000 -+sEnemyFrontpicSize:: db ++sEnemyFrontpicTileCount:: db + ds $f +sPaddedEnemyFrontpic:: ds 7 * 7 tiles +ENDU ; a600 @@ -127,7 +127,7 @@ Edit [engine/gfx/load_pics.asm](../blob/master/engine/gfx/load_pics.asm): ```diff _GetFrontpic: -+ ld a, BANK(sEnemyFrontpicSize) ++ ld a, BANK(sEnemyFrontpicTileCount) + call GetSRAMBank push de call GetBaseData @@ -148,7 +148,7 @@ Edit [engine/gfx/load_pics.asm](../blob/master/engine/gfx/load_pics.asm): + ld a, d + and $f0 + or e -+ ld [sEnemyFrontpicSize], a ++ ld [sEnemyFrontpicTileCount], a pop bc - ld hl, wDecompressScratch - ld de, wDecompressEnemyFrontpic @@ -201,10 +201,10 @@ Edit [engine/gfx/load_pics.asm](../blob/master/engine/gfx/load_pics.asm): + ld de, wDecompressScratch + 7 * 7 tiles ld c, 7 * 7 .got_dims -+ ; Get animation size (total - base sprite size) -+ ld a, [sEnemyFrontpicSize] ++ ; Get animation size (total tiles - base sprite size) ++ ld a, [sEnemyFrontpicTileCount] + sub c -+ ret z ; Return if there's no animation ++ ret z ; Return if there are no animation tiles + ld c, a push hl push bc @@ -220,7 +220,7 @@ Edit [engine/gfx/load_pics.asm](../blob/master/engine/gfx/load_pics.asm): + jr c, .finish + ; Otherwise, load the first part... + inc a -+ ld [sEnemyFrontpicSize], a ++ ld [sEnemyFrontpicTileCount], a + ld c, 127 - 7 * 7 call Get2bpp - xor a @@ -231,7 +231,7 @@ Edit [engine/gfx/load_pics.asm](../blob/master/engine/gfx/load_pics.asm): + ld hl, vTiles4 + ld a, [hROMBank] + ld b, a -+ ld a, [sEnemyFrontpicSize] ++ ld a, [sEnemyFrontpicTileCount] + ld c, a +.finish + jp Get2bpp |