Prev: 51447 Up: Map Next: 51482
51463: Nudge Object East West
Gives the player a push of one along y, towards the y position that is held in the speed along y of a door.
Input
IX Door record
IY Record of the legs of the player
Push one step towards the door along y.
NudgeObjectEastWest 51463 LD A,(IX+10) Fetch the y position of the place in front of the door.
51466 CP (IY+2) Compare it with the y position of the player.
51469 JR Z,NudgeObjectNorthSouth_Done Jump to NudgeObjectNorthSouth_Done if they are the same.
51471 LD A,1 Set the push to one.
51473 JR NC,NudgeObjectEastWest_Set Jump to NudgeObjectEastWest_Set if the place is further along than the player.
51475 NEG Make the push minus one.
NudgeObjectEastWest_Set 51477 LD (IY+15),A Set the push along y of the player.
51480 JR NudgeObjectNorthSouth_Done Jump to NudgeObjectNorthSouth_Done.
View the equivalent code in;
Prev: 51447 Up: Map Next: 51482