Prev: 30205 Up: Map Next: 30231
30215: Remove Entity
Used by the routine at HandleLevelIntroduction.
Erases the sprite at the position recorded by StoreEntity.
Before After
remove-entity-before remove-entity-after
RemoveEntity 30215 CALL PrepareOldSprite Prepare the recorded sprite using PrepareOldSprite.
RemoveEntity_Fetched 30218 EXX Switch to the shadow registers.
30219 XOR A A=0.
30220 LD C,A C=0.
30221 LD (24346),A Write 0 to ActorSprite_RowsRemaining.
30224 LD (24343),A Write 0 to ActorSprite_Rows.
30227 EXX Switch to the normal registers.
30228 JP XORSpriteLoop Jump to XORSpriteLoop.
View the equivalent code in;
Prev: 30205 Up: Map Next: 30231