![]() |
Routines |
| Prev: 51113 | Up: Map | Next: 51140 |
|
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 | 51121 | LD A,(IX+10) | Fetch the Y coordinate of the middle of the doorway. | |||||||
| 51124 | CP (IY+2) | Compare it with the Y coordinate of the object. | ||||||||
| 51127 | JR Z,NudgeObjectsToArch_Restore | Jump to NudgeObjectsToArch_Restore if the object is in the middle. | ||||||||
| 51129 | LD A,1 | Set the adjustment to 1. | ||||||||
| 51131 | JR NC,NudgeObjectEastWest_Set | Jump to NudgeObjectEastWest_Set if the object is south of the middle. | ||||||||
| 51133 | NEG | Make the adjustment negative. | ||||||||
| NudgeObjectEastWest_Set | 51135 | LD (IY+15),A | Set the adjustment of the speed in Y of the object. | |||||||
| 51138 | JR NudgeObjectsToArch_Restore | Jump to NudgeObjectsToArch_Restore. | ||||||||
| Prev: 51113 | Up: Map | Next: 51140 |