Prev: 50883 Up: Map Next: 50908
50887: Project Object
Used by the routine at DrawScrollingObject.
Works out where an object is on the screen, in the same way as ProjectCell. It fetches the position from the slot, calls ConvertPosition, and jumps to ProjectCell_Position. The result is put in ScreenHorizontalPosition and ScreenVerticalPosition.
Input
IX The address of the object
Fetch the position and convert it.
ProjectObject 50887 LD L,(IX+3) Fetch the vertical position.
50890 LD H,(IX+4)
50893 CALL ConvertPosition Call ConvertPosition.
50896 PUSH HL Stash it on the stack.
50897 LD L,(IX+1) Fetch the horizontal position.
50900 LD H,(IX+2)
50903 CALL ConvertPosition Call ConvertPosition.
50906 JR ProjectCell_Position Jump to ProjectCell_Position.
View the equivalent code in;
Prev: 50883 Up: Map Next: 50908