summaryrefslogtreecommitdiff
path: root/tilesets/animations.asm
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2015-07-21 02:04:38 -0400
committeryenatch <yenatch@gmail.com>2015-07-21 02:04:38 -0400
commit0b5471f385d3cc66bb4ae7aa4191ce3af9f50cac (patch)
tree61cb1021673d8a9b7b1cdddc64d90053a8476e8b /tilesets/animations.asm
parent006fc875971c92f2249f47b5fd120c5df76c6883 (diff)
parentd5ddd9e54ec2422d6f1cd7c561c1750512d0a81d (diff)
Merge pull request #302 from PikalaxALT/more_enum
More enum
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