Prev: 28985 Up: Map Next: 29013
29001: 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 29001 CALL PrepareActorSprite Call PrepareActorSprite to prepare the new sprite.
This entry point is used by the routines at DisplayCupsCollected and DisplayPlayerLives.
DrawEntity_NoOldSprite 29004 EXX Switch to the shadow registers.
29005 XOR A Write 0 to CurrentSpriteHeight (there are no lines of the old sprite to erase).
29006 LD (24101),A
29009 LD C,A C=A.
29010 JP MaskSprite Jump to MaskSprite.
View the equivalent code in;
Prev: 28985 Up: Map Next: 29013