summaryrefslogtreecommitdiff
path: root/engine/gamefreak.asm
diff options
context:
space:
mode:
authordannye <corrnondacqb@yahoo.com>2016-06-12 03:01:20 -0500
committerdannye <corrnondacqb@yahoo.com>2016-06-12 03:01:20 -0500
commitce3ec76762d9e2f0c560e2ea7868678418883143 (patch)
tree13bd307196f870d59157ab803c858c205eba6921 /engine/gamefreak.asm
parent604eb493c42b457f9e006e2cf67f29c15e0d1d0b (diff)
parentbcf0bd960b03720a02669ed2b6d3a22df60cf0b2 (diff)
Merge branch 'master' of https://github.com/pret/pokeyellow into merge-pokeredmerge-pokered
Diffstat (limited to 'engine/gamefreak.asm')
-rwxr-xr-xengine/gamefreak.asm11
1 files changed, 6 insertions, 5 deletions
diff --git a/engine/gamefreak.asm b/engine/gamefreak.asm
index 001445bd..5472a56e 100755
--- a/engine/gamefreak.asm
+++ b/engine/gamefreak.asm
@@ -39,7 +39,7 @@ AnimateShootingStar:
push bc
.bigStarInnerLoop
ld a, [hl] ; Y
- add 4 ; y
+ add 4
ld [hli], a
ld a, [hl] ; X
add -4
@@ -60,11 +60,11 @@ AnimateShootingStar:
.next
cp b
jr nz, .bigStarLoop
+
+; Clear big star OAM.
ld hl, wOAMBuffer
ld c, 4
ld de, 4
-
-; Clear big star OAM.
.clearOAMLoop
ld [hl], 160
add hl, de
@@ -83,6 +83,7 @@ AnimateShootingStar:
ret c
dec b
jr nz, .flashLogoLoop
+
; Copy 24 instances of the small stars OAM data.
; Note that their coordinates put them off-screen.
ld de, wOAMBuffer
@@ -98,7 +99,7 @@ AnimateShootingStar:
; Animate the small stars falling from the Gamefreak logo.
xor a
- ld [wMoveDownSmallStarsOAMCount], a ; wWhichTrade
+ ld [wMoveDownSmallStarsOAMCount], a
ld hl, SmallStarsWaveCoordsPointerTable
ld c, 6
.smallStarsLoop
@@ -214,7 +215,7 @@ MoveDownSmallStars:
ld de, -4
ld c, a
.innerLoop
- inc [hl]
+ inc [hl] ; Y
add hl, de
dec c
jr nz, .innerLoop