Updated constants for intro

This commit is contained in:
Pokeglitch 2018-06-23 11:37:58 -04:00
parent 01fe449837
commit 808c2509b0

View file

@ -1,12 +1,14 @@
MOVE_GENGAR_RIGHT EQU 0 const_value = -1
MOVE_GENGAR_LEFT EQU 1 const MOVE_NIDORINO_RIGHT
MOVE_NIDORINO_RIGHT EQU -1 const MOVE_GENGAR_RIGHT
const MOVE_GENGAR_LEFT
ANIMATION_END EQU 80 ANIMATION_END EQU 80
GENGAR_INTRO_TILES1 EQU 3 const_value = 3
GENGAR_INTRO_TILES2 EQU 4 const GENGAR_INTRO_TILES1
GENGAR_INTRO_TILES3 EQU 5 const GENGAR_INTRO_TILES2
const GENGAR_INTRO_TILES3
PlayIntro: PlayIntro:
xor a xor a
@ -237,11 +239,10 @@ IntroPlaceBlackTiles:
IntroMoveMon: IntroMoveMon:
; d = number of times to move the mon (2 pixels each time) ; d = number of times to move the mon (2 pixels each time)
; e: 0 = move Gengar right, 1 = move Gengar left, -1 = move Nidorino right
ld a, e ld a, e
cp -1 cp MOVE_NIDORINO_RIGHT
jr z, .moveNidorinoRight jr z, .moveNidorinoRight
cp 1 cp MOVE_GENGAR_LEFT
jr z, .moveGengarLeft jr z, .moveGengarLeft
; move Gengar right ; move Gengar right
ld a, [hSCX] ld a, [hSCX]