Prev: 26953 Up: Map Next: 27025
27008: 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 16 TerrainDots entities
HandlerTerrainDots 27008 RES 0,(IX+0) Reset bit 0 of the given Terrain Dot entity (it is no longer drawn).
27012 LD HL,(24116) Fetch the player position used last time (PlayerWorldPosition).
27015 LD A,L L=player X - terrain dot X.
27016 SUB (IX+0)
27019 LD L,A
27020 LD A,H H=player Y - terrain dot Y.
27021 SUB (IX+1)
27024 LD H,A
Prev: 26953 Up: Map Next: 27025