summaryrefslogtreecommitdiff
path: root/tilesets/animations.asm
diff options
context:
space:
mode:
Diffstat (limited to 'tilesets/animations.asm')
-rw-r--r--tilesets/animations.asm30
1 files changed, 16 insertions, 14 deletions
diff --git a/tilesets/animations.asm b/tilesets/animations.asm
index 1a43f02b4..8353cac30 100644
--- a/tilesets/animations.asm
+++ b/tilesets/animations.asm
@@ -16,8 +16,9 @@ _AnimateTileset:: ; fc000
ld [hTileAnimFrame], a
ld h, 0
+rept 2
add hl, hl
- add hl, hl
+endr
add hl, de
; 2-byte parameter
@@ -488,9 +489,9 @@ AnimateWaterTile: ; fc402
and 3 << 1
; 2 x 8 = 16 bytes per tile
+rept 3
add a
- add a
- add a
+endr
add WaterTileFrames % $100
ld l, a
@@ -527,9 +528,9 @@ ForestTreeLeftAnimation: ; fc45c
.asm_fc46c
ld a, [TileAnimationTimer]
call GetForestTreeFrame
+rept 3
add a
- add a
- add a
+endr
add ForestTreeLeftFrames % $100
ld l, a
ld a, 0
@@ -569,9 +570,9 @@ ForestTreeRightAnimation: ; fc4c4
.asm_fc4d4
ld a, [TileAnimationTimer]
call GetForestTreeFrame
+rept 3
add a
- add a
- add a
+endr
add ForestTreeLeftFrames % $100
ld l, a
ld a, 0
@@ -605,9 +606,9 @@ ForestTreeLeftAnimation2: ; fc4f2
ld a, [TileAnimationTimer]
call GetForestTreeFrame
xor 2
+rept 3
add a
- add a
- add a
+endr
add ForestTreeLeftFrames % $100
ld l, a
ld a, 0
@@ -637,9 +638,9 @@ ForestTreeRightAnimation2: ; fc51c
ld a, [TileAnimationTimer]
call GetForestTreeFrame
xor 2
+rept 3
add a
- add a
- add a
+endr
add ForestTreeLeftFrames % $100
ld l, a
ld a, 0
@@ -729,8 +730,9 @@ SafariFountainAnim1: ; fc5cc
ld a, [TileAnimationTimer]
and 6
srl a
+rept 2
inc a
- inc a
+endr
and 3
swap a
ld e, a
@@ -750,9 +752,9 @@ SafariFountainAnim2: ; fc5eb
ld c, l
ld a, [TileAnimationTimer]
and 6
+rept 3
add a
- add a
- add a
+endr
ld e, a
ld d, 0
ld hl, SafariFountainFrames