![]() |
Routines |
| Prev: C8F7 | Up: Map | Next: C91A |
|
Gives the player a push of one along y, towards the y position that is held in the speed along y of a door.
|
||||||||||
|
Push one step towards the door along y.
|
||||||||||
| NudgeObjectEastWest | C907 | LD A,(IX+$0A) | Fetch the y position of the place in front of the door. | |||||||
| C90A | CP (IY+$02) | Compare it with the y position of the player. | ||||||||
| C90D | JR Z,NudgeObjectNorthSouth_Done | Jump to NudgeObjectNorthSouth_Done if they are the same. | ||||||||
| C90F | LD A,$01 | Set the push to one. | ||||||||
| C911 | JR NC,NudgeObjectEastWest_Set | Jump to NudgeObjectEastWest_Set if the place is further along than the player. | ||||||||
| C913 | NEG | Make the push minus one. | ||||||||
| NudgeObjectEastWest_Set | C915 | LD (IY+$0F),A | Set the push along y of the player. | |||||||
| C918 | JR NudgeObjectNorthSouth_Done | Jump to NudgeObjectNorthSouth_Done. | ||||||||
|
View the equivalent code in;
|
||||||||||
| Prev: C8F7 | Up: Map | Next: C91A |