![]() |
Routines |
| Prev: C7A9 | Up: Map | Next: C7C4 |
|
Sets the adjustment of the speed in Y of an object, to bring it a step closer to the middle line of an arch that goes east and west.
|
||||||||||
|
Step the object towards the east-west middle line.
|
||||||||||
| NudgeObjectEastWest | C7B1 | LD A,(IX+$0A) | Fetch the Y coordinate of the middle of the doorway. | |||||||
| C7B4 | CP (IY+$02) | Compare it with the Y coordinate of the object. | ||||||||
| C7B7 | JR Z,NudgeObjectsToArch_Restore | Jump to NudgeObjectsToArch_Restore if the object is in the middle. | ||||||||
| C7B9 | LD A,$01 | Set the adjustment to 01. | ||||||||
| C7BB | JR NC,NudgeObjectEastWest_Set | Jump to NudgeObjectEastWest_Set if the object is south of the middle. | ||||||||
| C7BD | NEG | Make the adjustment negative. | ||||||||
| NudgeObjectEastWest_Set | C7BF | LD (IY+$0F),A | Set the adjustment of the speed in Y of the object. | |||||||
| C7C2 | JR NudgeObjectsToArch_Restore | Jump to NudgeObjectsToArch_Restore. | ||||||||
| Prev: C7A9 | Up: Map | Next: C7C4 |