Identify some more map object labels and constants

This commit is contained in:
Rangi
2020-10-22 17:41:48 -04:00
parent 15f6a0af43
commit d8310c166d
7 changed files with 199 additions and 184 deletions

View File

@@ -1,5 +1,6 @@
ObjectActionPairPointers:
; entries correspond to OBJECT_ACTION_* constants
; normal action, frozen action
dw SetFacingStanding, SetFacingStanding
dw SetFacingStandAction, SetFacingCurrent
dw SetFacingStepAction, SetFacingCurrent
@@ -163,7 +164,7 @@ CounterclockwiseSpinAction:
swap e
ld d, 0
ld hl, .Directions
ld hl, .facings
add hl, de
ld a, [hl]
ld hl, OBJECT_FACING
@@ -171,8 +172,11 @@ CounterclockwiseSpinAction:
ld [hl], a
ret
.Directions:
db OW_DOWN, OW_RIGHT, OW_UP, OW_LEFT
.facings:
db OW_DOWN
db OW_RIGHT
db OW_UP
db OW_LEFT
SetFacingFish:
call GetSpriteDirection