![]() |
Routines |
| Prev: 43372 | Up: Map | Next: 43403 |
|
Used by the routine at MaterialiseEntity.
Draws an entity at an offset in the X direction, and then puts its position back.
|
||||||||||||
| DrawShiftedEntity | 43380 | PUSH HL | Save the X position. | |||||||||
| 43381 | ADD HL,DE | Add the offset... | ||||||||||
| 43382 | LD A,H | ...and keep the X cell within the map. | ||||||||||
| 43383 | AND 63 | |||||||||||
| 43385 | LD H,A | |||||||||||
| 43386 | LD (IX+1),L | Store the X position of the entity... | ||||||||||
| 43389 | LD (IX+2),H | Store the X cell. | ||||||||||
| 43392 | CALL AddEntity | Draw the entity using AddEntity. | ||||||||||
| 43395 | POP HL | Restore the X position... | ||||||||||
| 43396 | LD (IX+1),L | ...and store it again. | ||||||||||
| 43399 | LD (IX+2),H | Store the X cell again. | ||||||||||
| 43402 | RET | Return. | ||||||||||
| Prev: 43372 | Up: Map | Next: 43403 |