diff options
author | YamaArashi <shadow962@live.com> | 2015-07-24 20:27:59 -0700 |
---|---|---|
committer | YamaArashi <shadow962@live.com> | 2015-07-24 20:27:59 -0700 |
commit | 7f6d0d49b61a77cfba76057d99881634b882486b (patch) | |
tree | afb152986ff34039cb64e3101dd2b2b1e3293552 /home/vcopy.asm | |
parent | 12db77201f7ba50241331c3949241a420f43d660 (diff) |
more naming variables
Diffstat (limited to 'home/vcopy.asm')
-rw-r--r-- | home/vcopy.asm | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/home/vcopy.asm b/home/vcopy.asm index 8de00e38..02caef29 100644 --- a/home/vcopy.asm +++ b/home/vcopy.asm @@ -380,21 +380,23 @@ UpdateMovingBgTiles:: and a ret z ; no animations if indoors (or if a menu set this to 0) - ld a, [$ffd8] + ld a, [hMovingBGTilesCounter1] inc a - ld [$ffd8], a - cp $14 + ld [hMovingBGTilesCounter1], a + cp 20 ret c - cp $15 + cp 21 jr z, .flower +; water + ld hl, vTileset + $14 * $10 ld c, $10 - ld a, [wd085] + ld a, [wMovingBGTilesCounter2] inc a and 7 - ld [wd085], a + ld [wMovingBGTilesCounter2], a and 4 jr nz, .left @@ -417,14 +419,14 @@ UpdateMovingBgTiles:: ret nc ; if in a cave, no flower animations xor a - ld [$ffd8], a + ld [hMovingBGTilesCounter1], a ret .flower xor a - ld [$ffd8], a + ld [hMovingBGTilesCounter1], a - ld a, [wd085] + ld a, [wMovingBGTilesCounter2] and 3 cp 2 ld hl, FlowerTile1 |