Prev: 28929 Up: Map Next: 29001
28985: 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 28985 CALL PrepareOldSprite Call PrepareOldSprite to prepare the old sprite.
28988 EXX Switch to the shadow registers.
28989 XOR A Set A to 0.
28990 LD C,A C=A (there are no lines of the new sprite to draw).
28991 LD (24102),A Write 0 to;
28994 LD (24099),A
28997 EXX Switch back to the normal registers.
28998 JP MaskSprite Jump to MaskSprite.
View the equivalent code in;
Prev: 28929 Up: Map Next: 29001