Prev: 6949 Up: Map Next: 6991
6980: Handler: Terrain Dots
Used by the routine at UpdateTerrainDot.
Erases a terrain dot from where it was drawn. The position is worked out from the player position that was saved in PlayerWorldPosition when the dots were last updated.
Input
IX One of the 10 TerrainDots entities
HandlerTerrainDots 6980 RES 0,(IX+$00) Reset bit 0 of the given Terrain Dot entity (it is no longer drawn).
6984 LD HL,($5E34) Fetch the player position used last time (PlayerWorldPosition).
6987 LD A,L L=player X - terrain dot X.
6988 SUB (IX+$00)
698B LD L,A
698C LD A,H H=player Y - terrain dot Y.
698D SUB (IX+$01)
6990 LD H,A
Prev: 6949 Up: Map Next: 6991