Prev: 47325 Up: Map Next: 47362
47349: Remove Entity
Used by the routine at UpdateActor.
Removes an entity from the screen, by drawing the sprite at the old position that was saved by StoreEntity. The sprites are drawn with XOR so this erases the sprite. No new sprite is drawn, so the row count of the new sprite is zero.
Before After RemoveEntity
remove-entity-before remove-entity-after
RemoveEntity 47349 CALL PrepDraw23 Prepare the registers for the sprite at its old position.
47352 EXX Switch to the shadow registers.
47353 XOR A Set A and C to 0.
47354 LD C,A
47355 LD (38564),A Write 0 to New_Sprite_Row_Count.
47358 EXX Switch back to the normal registers.
47359 JP XORSpriteLoop Jump to XORSpriteLoop.
View the equivalent code in;
Prev: 47325 Up: Map Next: 47362