Prev: 47362 Up: Map Next: 47397
47385: Draw Entity
Draws an entity on the screen, at its current position, using XOR. Nothing is erased, as the entity has no old sprite on the screen, so the row count of the old sprite is zero.
The attributes are set separately by ColourEntity.
Input
IX Actor record
Before After DrawEntity and ColourEntity
entity-before entity-after
DrawEntity 47385 CALL PrepDraw2 Prepare the registers for the sprite at its new position.
47388 EXX Switch to the shadow registers, which belong to the old sprite.
47389 XOR A Write 0 to Old_Sprite_Row_Count as there are no rows of the old sprite to draw.
47390 LD (38563),A
47393 LD C,A C=0.
47394 JP XORSpriteLoop Jump to XORSpriteLoop to draw the sprite.
View the equivalent code in;
Prev: 47362 Up: Map Next: 47397