diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2018-06-30 16:02:46 -0400 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2018-06-30 16:02:46 -0400 |
commit | b21b82c45c183d9c83975c5a4bf703955601cd2c (patch) | |
tree | 6d8b1745c1cda293e9673ec4e50a41fe22f1ff69 | |
parent | 31df828205c0797ccfcf926a7f4578d192763dd1 (diff) |
Say "count"; "size" is 5x5, 6x6, or 7x7
-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 |