Prev: B902 Up: Map Next: B925
B919: 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 B919 CALL PrepDraw2 Prepare the registers for the sprite at its new position.
B91C EXX Switch to the shadow registers, which belong to the old sprite.
B91D XOR A Write 00 to Old_Sprite_Row_Count as there are no rows of the old sprite to draw.
B91E LD ($96A3),A
B921 LD C,A C=00.
B922 JP XORSpriteLoop Jump to XORSpriteLoop to draw the sprite.
View the equivalent code in;
Prev: B902 Up: Map Next: B925