Prev: 53246 Up: Map Next: 53287
53267: Draw Object
Used by the routine at DrawNextObject.
Draws an object into ScreenBuffer. An object that has the sprite number 1 is removed instead, by making it null.
Input
IX The address of the object
Remove the object if it is retired.
DrawObject 53267 LD A,(IX+0) Fetch the sprite number.
53270 CP 1 Jump to DrawObject_Draw if it is not 1.
53272 JR NZ,DrawObject_Draw
53274 LD (IX+0),0 Write 0 to the sprite number.
53278 RET Return.
Find the position and draw the sprite.
DrawObject_Draw 53279 RES 4,(IX+7) Reset bit 4 of the flags.
53283 CALL CalculatePixelCoordinates Call CalculatePixelCoordinates.
53286 RET NC Return if the sprite is not on the screen.
Continue on to PrintSprite.
View the equivalent code in;
Prev: 53246 Up: Map Next: 53287