Cleanup Magic Numbers

This commit is contained in:
vulcandth 2022-04-05 14:02:37 -05:00 committed by mid-kid
parent 5a7ddb3272
commit af7d328d66

View File

@ -32,9 +32,9 @@ CrystalIntro:
xor a xor a
ldh [hSCX], a ldh [hSCX], a
ldh [hSCY], a ldh [hSCY], a
ld a, $7 ld a, 7
ldh [hWX], a ldh [hWX], a
ld a, $90 ld a, SCREEN_HEIGHT_PX
ldh [hWY], a ldh [hWY], a
pop af pop af
ldh [hVBlank], a ldh [hVBlank], a
@ -132,9 +132,9 @@ IntroScene1:
xor a xor a
ldh [hSCX], a ldh [hSCX], a
ldh [hSCY], a ldh [hSCY], a
ld a, $7 ld a, 7
ldh [hWX], a ldh [hWX], a
ld a, $90 ld a, SCREEN_HEIGHT_PX
ldh [hWY], a ldh [hWY], a
farcall ClearSpriteAnims farcall ClearSpriteAnims
call Intro_SetCGBPalUpdate call Intro_SetCGBPalUpdate
@ -205,9 +205,9 @@ IntroScene3:
xor a xor a
ldh [hSCX], a ldh [hSCX], a
ldh [hSCY], a ldh [hSCY], a
ld a, $7 ld a, 7
ldh [hWX], a ldh [hWX], a
ld a, $90 ld a, SCREEN_HEIGHT_PX
ldh [hWY], a ldh [hWY], a
call Intro_ResetLYOverrides call Intro_ResetLYOverrides
call Intro_SetCGBPalUpdate call Intro_SetCGBPalUpdate
@ -271,9 +271,9 @@ IntroScene5:
xor a xor a
ldh [hSCX], a ldh [hSCX], a
ldh [hSCY], a ldh [hSCY], a
ld a, $7 ld a, 7
ldh [hWX], a ldh [hWX], a
ld a, $90 ld a, SCREEN_HEIGHT_PX
ldh [hWY], a ldh [hWY], a
farcall ClearSpriteAnims farcall ClearSpriteAnims
call Intro_SetCGBPalUpdate call Intro_SetCGBPalUpdate
@ -381,9 +381,9 @@ IntroScene7:
xor a xor a
ldh [hSCX], a ldh [hSCX], a
ldh [hSCY], a ldh [hSCY], a
ld a, $7 ld a, 7
ldh [hWX], a ldh [hWX], a
ld a, $90 ld a, SCREEN_HEIGHT_PX
ldh [hWY], a ldh [hWY], a
call Intro_ResetLYOverrides call Intro_ResetLYOverrides
farcall ClearSpriteAnims farcall ClearSpriteAnims
@ -536,9 +536,9 @@ IntroScene11:
xor a xor a
ldh [hSCX], a ldh [hSCX], a
ldh [hSCY], a ldh [hSCY], a
ld a, $7 ld a, 7
ldh [hWX], a ldh [hWX], a
ld a, $90 ld a, SCREEN_HEIGHT_PX
ldh [hWY], a ldh [hWY], a
farcall ClearSpriteAnims farcall ClearSpriteAnims
call Intro_SetCGBPalUpdate call Intro_SetCGBPalUpdate
@ -662,9 +662,9 @@ IntroScene13:
xor a xor a
ldh [hSCX], a ldh [hSCX], a
ldh [hSCY], a ldh [hSCY], a
ld a, $7 ld a, 7
ldh [hWX], a ldh [hWX], a
ld a, $90 ld a, SCREEN_HEIGHT_PX
ldh [hWY], a ldh [hWY], a
farcall ClearSpriteAnims farcall ClearSpriteAnims
depixel 13, 11, 4, 0 depixel 13, 11, 4, 0
@ -770,11 +770,11 @@ IntroScene15:
ldh [rSVBK], a ldh [rSVBK], a
xor a xor a
ldh [hSCX], a ldh [hSCX], a
ld a, $90 ld a, SCREEN_HEIGHT_PX
ldh [hSCY], a ldh [hSCY], a
ld a, $7 ld a, 7
ldh [hWX], a ldh [hWX], a
ld a, $90 ld a, SCREEN_HEIGHT_PX
ldh [hWY], a ldh [hWY], a
farcall ClearSpriteAnims farcall ClearSpriteAnims
call Intro_SetCGBPalUpdate call Intro_SetCGBPalUpdate
@ -845,9 +845,9 @@ IntroScene17:
xor a xor a
ldh [hSCX], a ldh [hSCX], a
ldh [hSCY], a ldh [hSCY], a
ld a, $7 ld a, 7
ldh [hWX], a ldh [hWX], a
ld a, $90 ld a, SCREEN_HEIGHT_PX
ldh [hWY], a ldh [hWY], a
farcall ClearSpriteAnims farcall ClearSpriteAnims
call Intro_SetCGBPalUpdate call Intro_SetCGBPalUpdate
@ -918,11 +918,11 @@ IntroScene19:
ldh [rSVBK], a ldh [rSVBK], a
xor a xor a
ldh [hSCX], a ldh [hSCX], a
ld a, $d8 ld a, 27 * TILE_WIDTH
ldh [hSCY], a ldh [hSCY], a
ld a, $7 ld a, 7
ldh [hWX], a ldh [hWX], a
ld a, $90 ld a, SCREEN_HEIGHT_PX
ldh [hWY], a ldh [hWY], a
farcall ClearSpriteAnims farcall ClearSpriteAnims
ld hl, wSpriteAnimDict ld hl, wSpriteAnimDict
@ -1089,9 +1089,9 @@ IntroScene26:
xor a xor a
ldh [hSCX], a ldh [hSCX], a
ldh [hSCY], a ldh [hSCY], a
ld a, $7 ld a, 7
ldh [hWX], a ldh [hWX], a
ld a, $90 ld a, SCREEN_HEIGHT_PX
ldh [hWY], a ldh [hWY], a
farcall ClearSpriteAnims farcall ClearSpriteAnims
call Intro_SetCGBPalUpdate call Intro_SetCGBPalUpdate