More direction constants

facing directions, npc movement, joypad
This commit is contained in:
dannye 2015-07-17 02:52:25 -05:00
parent 77ba61cb17
commit fb559f1f4e
38 changed files with 445 additions and 247 deletions

View file

@ -162,8 +162,8 @@ UpdateNPCSprite: ; 4ed1 (1:4ed1)
ld [hl], a ; increment movement byte 1 (movement data index)
dec a
push hl
ld hl, wcf0f
dec [hl] ; decrement wcf0f
ld hl, wNPCNumScriptedSteps
dec [hl] ; decrement wNPCNumScriptedSteps
pop hl
ld de, wNPCMovementDirections
call LoadDEPlusA ; a = [wNPCMovementDirections + movement byte 1]

View file

@ -66,17 +66,18 @@ PewterMuseumGuyCoords: ; 37cea (d:7cea)
dw .right
.down
db $40, $40, $ff
db D_UP, D_UP, $ff
.up
db $10, $20, $ff
db D_RIGHT, D_LEFT, $ff
.left
db $40, $10, $ff
db D_UP, D_RIGHT, $ff
.right
db $40, $20, $ff
db D_UP, D_LEFT, $ff
; these are the five coordinates which trigger the gym guy and pointers to
; different movements for the player to make to get positioned before the
; main movement
; $00 is a pause
PewterGymGuyCoords: ; 37d06 (d:7d06)
db 16, 34
dw .one
@ -90,12 +91,12 @@ PewterGymGuyCoords: ; 37d06 (d:7d06)
dw .five
.one
db $20, $80, $80, $10, $ff
db D_LEFT, D_DOWN, D_DOWN, D_RIGHT, $ff
.two
db $20, $80, $10, $20, $ff
db D_LEFT, D_DOWN, D_RIGHT, D_LEFT, $ff
.three
db $20, $20, $20, $00, $00, $00, $00, $00, $00, $00, $00, $ff
db D_LEFT, D_LEFT, D_LEFT, $00, $00, $00, $00, $00, $00, $00, $00, $ff
.four
db $20, $20, $40, $20, $ff
db D_LEFT, D_LEFT, D_UP, D_LEFT, $ff
.five
db $20, $80, $20, $00, $00, $00, $00, $00, $00, $00, $00, $ff
db D_LEFT, D_DOWN, D_LEFT, $00, $00, $00, $00, $00, $00, $00, $00, $ff