Prev: 7101 Up: Map Next: 7149
7139: Remove Entity
Used by the routines at GameOver, HandlerCar and EraseObject.
Erases the sprite of an actor from where it was last drawn (the old state held in the actor buffer at Actor_Position_X), without drawing it again.
Before After
remove-entity-before remove-entity-after
RemoveEntity 7139 CALL PrepareOldSprite Call PrepareOldSprite to prepare the old sprite.
713C EXX Switch to the shadow registers.
713D XOR A Set A to 00.
713E LD C,A C=A (there are no lines of the new sprite to draw).
713F LD ($5E26),A Write 00 to;
7142 LD ($5E23),A
7145 EXX Switch back to the normal registers.
7146 JP MaskSprite Jump to MaskSprite.
View the equivalent code in;
Prev: 7101 Up: Map Next: 7149