![]() |
Routines |
Prev: 54383 | Up: Map | Next: 54419 |
Used by the routine at 54383.
|
||||||||||
54398 | LD A,(34235) | Load D with i.e. x-coordinate of right edge of room (width of current room (chars) + 99) minus x-coordinate of right-edge of current character (i.e. [negative] distance by which entity's right edge is to the right of right edge of room) | ||||||||
54401 | SUB (IX+7) | |||||||||
54404 | LD D,A | |||||||||
54405 | CALL 54480 | Set room of entity to B, store room size data for new room and load E with entity's width minus one | ||||||||
54408 | LD A,99 | Load A with x-coordinate of left edge of current (new) room | ||||||||
54410 | SUB D | Subtract D (negative)... | ||||||||
54411 | LD (IX+7),A | ...and set as new x-coordinate of entity's right edge | ||||||||
54414 | SUB E | Subtract (width - 1) of entity... | ||||||||
54415 | LD (IX+5),A | ...and set this as x-coordinate of entity's left edge | ||||||||
54418 | RET | Return |
Prev: 54383 | Up: Map | Next: 54419 |