mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-22 07:02:17 +13:00
more naming variables
This commit is contained in:
parent
12db77201f
commit
7f6d0d49b6
57 changed files with 374 additions and 294 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue