summaryrefslogtreecommitdiff
path: root/engine/menus/intro_menu.asm
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-10-04 22:34:55 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2020-10-04 22:34:55 -0400
commit3745ba9f9e58088b5abd9899ed4783d22654f8a0 (patch)
treeea73659071fe6a3801188bfbcfbbc7b63c9d3497 /engine/menus/intro_menu.asm
parentd634097c586e4ca3513a7afd34f645be9c8022d2 (diff)
Identify more unnamed labels
Diffstat (limited to 'engine/menus/intro_menu.asm')
-rw-r--r--engine/menus/intro_menu.asm35
1 files changed, 23 insertions, 12 deletions
diff --git a/engine/menus/intro_menu.asm b/engine/menus/intro_menu.asm
index 784da3cf..80db603f 100644
--- a/engine/menus/intro_menu.asm
+++ b/engine/menus/intro_menu.asm
@@ -908,7 +908,7 @@ RunTitleScreen:
farcall PlaySpriteAnimations
xor a
ldh [hOAMUpdate], a
- call Function64b1
+ call UpdateTitleTrailSprite
call DelayFrame
and a
ret
@@ -1069,7 +1069,7 @@ ResetClock:
farcall _ResetClock
jp Init
-Function64b1:
+UpdateTitleTrailSprite:
; If bit 0 or 1 of [wTitleScreenTimer] is set, we don't need to be here.
ld a, [wTitleScreenTimer]
and %00000011
@@ -1082,9 +1082,9 @@ IF DEF(_GOLD)
ld h, 0
add hl, hl
add hl, hl
- ld de, .Data_64e0
+ ld de, .TitleTrailCoords
add hl, de
- ; If bit 2 of [wTitleScreenTimer] is set, get the second dw; else, get the first dw
+ ; If bit 2 of [wTitleScreenTimer] is set, get the second coords; else, get the first coords
ld a, [wTitleScreenTimer]
and %00000100
srl a
@@ -1106,14 +1106,25 @@ ENDC
ret
IF DEF(_GOLD)
-.Data_64e0:
-; frame 0 y, x; frame 1 y, x
- db 11 * 8 + 4, 10 * 8, 0 * 8, 0 * 8
- db 11 * 8 + 4, 13 * 8, 11 * 8 + 4, 11 * 8
- db 11 * 8 + 4, 13 * 8, 11 * 8 + 4, 15 * 8
- db 11 * 8 + 4, 17 * 8, 11 * 8 + 4, 15 * 8
- db 0 * 8, 0 * 8, 11 * 8 + 4, 15 * 8
- db 0 * 8, 0 * 8, 11 * 8 + 4, 11 * 8
+.TitleTrailCoords:
+trail_coords: MACRO
+rept _NARG / 2
+_dx = 4
+if \1 == 0 && \2 == 0
+_dx = 0
+endc
+ dbpixel \1, \2, _dx, 0
+ shift
+ shift
+endr
+ENDM
+ ; frame 0 y, x; frame 1 y, x
+ trail_coords 11, 10, 0, 0
+ trail_coords 11, 13, 11, 11
+ trail_coords 11, 13, 11, 15
+ trail_coords 11, 17, 11, 15
+ trail_coords 0, 0, 11, 15
+ trail_coords 0, 0, 11, 11
ENDC
Copyright: