summaryrefslogtreecommitdiff
path: root/hram.asm
diff options
context:
space:
mode:
authorYamaArashi <shadow962@live.com>2015-07-15 13:58:21 -0700
committerYamaArashi <shadow962@live.com>2015-07-15 13:58:21 -0700
commitac78dda7d8a4a6cf9af95f601bdac9fc348c65a6 (patch)
tree8e4e90bedb2bfcd6453794afbf48974f6be0157c /hram.asm
parent7b676f5851a2b6fe0001f259afde6e9918b93683 (diff)
more movement stuff
Diffstat (limited to 'hram.asm')
-rw-r--r--hram.asm38
1 files changed, 37 insertions, 1 deletions
diff --git a/hram.asm b/hram.asm
index 55f757ff..f3bacee1 100644
--- a/hram.asm
+++ b/hram.asm
@@ -28,7 +28,7 @@ hPartyMonIndex EQU $FF8C
hHalveItemPrices EQU $FF8E
-hSpriteDataOffset2 EQU $FF8F
+hSpriteOffset2 EQU $FF8F
hOAMBufferOffset EQU $FF90
@@ -39,6 +39,11 @@ hTilePlayerStandingOn EQU $FF93
hSpritePriority EQU $FF94
+hNPCMovementDirections2Index EQU $FF95
+
+; CalcPositionOfPlayerRelativeToNPC
+hNPCSpriteOffset EQU $FF95
+
; Multiplcation and division variables are meant
; to overlap for back-to-back usage. Big endian.
@@ -57,6 +62,33 @@ H_NUMTOPRINT EQU $FF96 ; 3 bytes
H_POWEROFTEN EQU $FF99 ; 3 bytes
H_SAVEDNUMTOPRINT EQU $FF9C ; 3 bytes
+; distance in steps between NPC and player
+hNPCPlayerYDistance EQU $FF95
+hNPCPlayerXDistance EQU $FF96
+
+hFindPathNumSteps EQU $FF97
+
+; bit 0: set when the end of the path's Y coordinate matches the target's
+; bit 1: set when the end of the path's X coordinate matches the target's
+; When both bits are set, the end of the path is at the target's position
+; (i.e. the path has been found).
+hFindPathFlags EQU $FF98
+
+hFindPathYProgress EQU $FF99
+hFindPathXProgress EQU $FF9A
+
+; 0 = from player to NPC
+; 1 = from NPC to player
+hNPCPlayerRelativePosPerspective EQU $FF9B
+
+; bit 0:
+; 0 = target is to the south or aligned
+; 1 = target is to the north
+; bit 1:
+; 0 = target is to the east or aligned
+; 1 = target is to the west
+hNPCPlayerRelativePosFlags EQU $FF9D
+
hSerialReceivedNewData EQU $FFA9
; $01 = using external clock
@@ -166,6 +198,10 @@ hTilesetType EQU $FFD7
H_CURRENTSPRITEOFFSET EQU $FFDA ; multiple of $10
+hDividend2 EQU $FFE5
+hDivisor2 EQU $FFE6
+hQuotient2 EQU $FFE7
+
hSpriteVRAMSlotAndFacing EQU $FFE9
hSpriteAnimFrameCounter EQU $FFEA