![]() |
Routines |
| Prev: D4EF | Up: Map | Next: D508 |
|
Used by the routine at DRAW_SPRITE.
Projects an object record's U and V (+1 to +4) onto the screen at DRAW_X and DRAW_Y, turned round with the town if it is (TURN_POSITION), by PROJECT_CELL's formula. Used by the sprite drawing (DRAW_SPRITE).
|
||||||||
| PROJECT_THING | D4F3 | LD L,(IX+$03) | Its V, turned if the town is, saved | |||||
| D4F6 | LD H,(IX+$04) | |||||||
| D4F9 | CALL TURN_POSITION | |||||||
| D4FC | PUSH HL | |||||||
| D4FD | LD L,(IX+$01) | Its U, the same; on to the projection | ||||||
| D500 | LD H,(IX+$02) | |||||||
| D503 | CALL TURN_POSITION | |||||||
| D506 | JR PROJECT_POINT | |||||||
| Prev: D4EF | Up: Map | Next: D508 |