![]() |
Routines |
| Prev: 47362 | Up: Map | Next: 47397 |
|
Used by the routines at StartNastie, HandlerAmuletPiece, HandlerPoems, CollectPickup, HandlerRemoveNastie, DrawActor, GamePlayEntry, EnterRoomBelow and DrawRoomActors.
Draws an entity on the screen, at its current position, using XOR. Nothing is erased, as the entity has no old sprite on the screen, so the row count of the old sprite is zero.
The attributes are set separately by ColourEntity.
|
||||||||
|
||||||||
| DrawEntity | 47385 | CALL PrepDraw2 | Prepare the registers for the sprite at its new position. | |||||
| 47388 | EXX | Switch to the shadow registers, which belong to the old sprite. | ||||||
| 47389 | XOR A | Write 0 to Old_Sprite_Row_Count as there are no rows of the old sprite to draw. | ||||||
| 47390 | LD (38563),A | |||||||
| 47393 | LD C,A | C=0. | ||||||
| 47394 | JP XORSpriteLoop | Jump to XORSpriteLoop to draw the sprite. | ||||||
| Prev: 47362 | Up: Map | Next: 47397 |