Prev: 55023 Up: Map Next: 55064
55044: Draw Object
Used by the routine at DrawNextObject.
Draws an object into the screen buffer. An object that has the graphic number 1 is removed instead, by making it null.
Input
IX Address of the object
DrawObject 55044 LD A,(IX+0) Fetch the graphic number and test whether it is the one that removes the object.
55047 CP 1
55049 JR NZ,DrawNextObject_Draw Jump to DrawNextObject_Draw if it is not.
55051 LD (IX+0),0 Make the graphic number null.
55055 RET Return.
DrawNextObject_Draw 55056 RES 4,(IX+7) Flag the object as not to be drawn.
55060 CALL CalculatePixelCoordinates Work out the pixel coordinates.
55063 RET NC Return if the sprite is off the top of the screen.
Continue on to PrintSprite.
View the equivalent code in;
Prev: 55023 Up: Map Next: 55064