Prev: 7139 Up: Map Next: 7155
7149: Draw Entity
Used by the routine at DisplayEntity.
Draws the sprite of an actor at its position, when there is no old sprite to erase.
Before After
draw-entity-before draw-entity-after
Input
IX Actor entity
DrawEntity 7149 CALL PrepareActorSprite Call PrepareActorSprite to prepare the new sprite.
This entry point is used by the routines at DisplayCupsCollected and DisplayPlayerLives.
DrawEntity_NoOldSprite 714C EXX Switch to the shadow registers.
714D XOR A Write 00 to CurrentSpriteHeight (there are no lines of the old sprite to erase).
714E LD ($5E25),A
7151 LD C,A C=A.
7152 JP MaskSprite Jump to MaskSprite.
View the equivalent code in;
Prev: 7139 Up: Map Next: 7155