![]() |
Routines |
| Prev: C907 | Up: Map | Next: C92C |
|
Gives the player a push of one along x, towards the x position that is held in the speed along x of a door.
|
||||||||||
|
Push one step towards the door along x.
|
||||||||||
| NudgeObjectNorthSouth | C91A | LD A,(IX+$09) | Fetch the x position of the place in front of the door. | |||||||
| C91D | CP (IY+$01) | Compare it with the x position of the player. | ||||||||
| C920 | JR Z,NudgeObjectNorthSouth_Done | Jump to NudgeObjectNorthSouth_Done if they are the same. | ||||||||
| C922 | LD A,$01 | Set the push to one. | ||||||||
| C924 | JR NC,NudgeObjectNorthSouth_Set | Jump to NudgeObjectNorthSouth_Set if the place is further along than the player. | ||||||||
| C926 | NEG | Make the push minus one. | ||||||||
| NudgeObjectNorthSouth_Set | C928 | LD (IY+$0E),A | Set the push along x of the player. | |||||||
|
This entry point is used by the routine at NudgeObjectEastWest.
|
||||||||||
| NudgeObjectNorthSouth_Done | C92B | RET | Return. | |||||||
| Prev: C907 | Up: Map | Next: C92C |