summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPokeglitch <pokeglitchx@gmail.com>2018-06-23 11:37:58 -0400
committerPokeglitch <pokeglitchx@gmail.com>2018-06-23 11:37:58 -0400
commit808c2509b00903478dfdad1830bef6358d93b7dd (patch)
treef8156a300730857439533eb62a9422da9b808fa5
parent01fe449837bef1c289d37477745774555d22786e (diff)
Updated constants for intro
-rwxr-xr-xengine/intro.asm21
1 files changed, 11 insertions, 10 deletions
diff --git a/engine/intro.asm b/engine/intro.asm
index f69a0020..4acab5a6 100755
--- a/engine/intro.asm
+++ b/engine/intro.asm
@@ -1,12 +1,14 @@
-MOVE_GENGAR_RIGHT EQU 0
-MOVE_GENGAR_LEFT EQU 1
-MOVE_NIDORINO_RIGHT EQU -1
+const_value = -1
+ const MOVE_NIDORINO_RIGHT
+ const MOVE_GENGAR_RIGHT
+ const MOVE_GENGAR_LEFT
-ANIMATION_END EQU 80
+ANIMATION_END EQU 80
-GENGAR_INTRO_TILES1 EQU 3
-GENGAR_INTRO_TILES2 EQU 4
-GENGAR_INTRO_TILES3 EQU 5
+const_value = 3
+ const GENGAR_INTRO_TILES1
+ const GENGAR_INTRO_TILES2
+ const GENGAR_INTRO_TILES3
PlayIntro:
xor a
@@ -237,11 +239,10 @@ IntroPlaceBlackTiles:
IntroMoveMon:
; 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
- cp -1
+ cp MOVE_NIDORINO_RIGHT
jr z, .moveNidorinoRight
- cp 1
+ cp MOVE_GENGAR_LEFT
jr z, .moveGengarLeft
; move Gengar right
ld a, [hSCX]