Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ld hl, waterAnims
- ld de, $0000
- ld a, [rAnimFrame]
- sla a
- sla a
- sla a
- sla a
- ld e, a
- add hl, de
- ld de, $8000+(9*16)
- ld bc, 16
- call loadTiles
- ld hl, lavaAnim
- ld de, $0000
- ld a, [rAnimFrame]
- sla a
- sla a
- sla a
- sla a
- ld e, a
- add hl, de
- ld de, $8000+(13*16)
- ld bc, 16
- call loadTiles
- ld a, [rTimeToNextFrame]
- dec a
- ld [rTimeToNextFrame], a
- cp $00
- jr nz, .dontGoToNextFrame
- ld a, $07
- ld [rTimeToNextFrame], a
- ld a, [rAnimFrame]
- inc a
- cp $04
- jr nz, .dontResetAnimFrame
- ld a, $00
- .dontResetAnimFrame:
- ld [rAnimFrame], a
- .dontGoToNextFrame
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement