summaryrefslogtreecommitdiff
path: root/scripts/pokemontower2.asm
diff options
context:
space:
mode:
authordannye <corrnondacqb@yahoo.com>2015-07-17 02:52:25 -0500
committerdannye <corrnondacqb@yahoo.com>2015-07-17 02:52:25 -0500
commitfb559f1f4e0104bfc59350359a2fb82fbe88ebba (patch)
tree8f0a248d06139fe584ca6381ceea2a3fd5f248e7 /scripts/pokemontower2.asm
parent77ba61cb17665779673dcd536122271c66614252 (diff)
More direction constants
facing directions, npc movement, joypad
Diffstat (limited to 'scripts/pokemontower2.asm')
-rwxr-xr-xscripts/pokemontower2.asm24
1 files changed, 20 insertions, 4 deletions
diff --git a/scripts/pokemontower2.asm b/scripts/pokemontower2.asm
index cd86a494..286b8202 100755
--- a/scripts/pokemontower2.asm
+++ b/scripts/pokemontower2.asm
@@ -34,12 +34,12 @@ PokemonTower2Script0: ; 6050f (18:450f)
ld a, [wWhichTrade]
cp $1
ld a, $8
- ld b, $0
+ ld b, SPRITE_FACING_DOWN
jr nz, .asm_60544
ld hl, wd764
set 6, [hl]
ld a, $2
- ld b, $c
+ ld b, SPRITE_FACING_RIGHT
.asm_60544
ld [wd528], a
ld a, $1
@@ -90,10 +90,26 @@ PokemonTower2Script1: ; 60563 (18:4563)
ret
MovementData_605a9: ; 605a9 (18:45a9)
- db $C0,$00,$00,$C0,$00,$00,$C0,$C0,$FF
+ db NPC_MOVEMENT_RIGHT
+ db NPC_MOVEMENT_DOWN
+ db NPC_MOVEMENT_DOWN
+ db NPC_MOVEMENT_RIGHT
+ db NPC_MOVEMENT_DOWN
+ db NPC_MOVEMENT_DOWN
+ db NPC_MOVEMENT_RIGHT
+ db NPC_MOVEMENT_RIGHT
+ db $FF
MovementData_605b2: ; 605b2 (18:45b2)
- db $00,$00,$C0,$C0,$C0,$C0,$00,$00,$FF
+ db NPC_MOVEMENT_DOWN
+ db NPC_MOVEMENT_DOWN
+ db NPC_MOVEMENT_RIGHT
+ db NPC_MOVEMENT_RIGHT
+ db NPC_MOVEMENT_RIGHT
+ db NPC_MOVEMENT_RIGHT
+ db NPC_MOVEMENT_DOWN
+ db NPC_MOVEMENT_DOWN
+ db $FF
PokemonTower2Script2: ; 605bb (18:45bb)
ld a, [wd730]