Prev: 49067 Up: Map Next: 49112
49078: Apply Gravity And Move
Input
IX The address of the object
Speed the fall, then stay clear of walls and other objects.
ApplyGravityAndMove 49078 DEC (IX+11) Take one off the z speed of the object.
49081 CALL BlockMovement Call BlockMovement.
This entry point is used by the routine at MovePlayer.
Add the speeds to the position.
MoveObject 49084 LD A,(IX+1) Fetch the x position of the object.
49087 ADD A,(IX+9) Add the speed along the x axis.
49090 LD (IX+1),A Set the new x position.
49093 LD A,(IX+2) Fetch the y position of the object.
49096 ADD A,(IX+10) Add the speed along the y axis.
49099 LD (IX+2),A Set the new y position.
49102 LD A,(IX+3) Fetch the z position of the object.
49105 ADD A,(IX+11) Add the speed along the z axis.
49108 LD (IX+3),A Set the new z position.
49111 RET Return.
View the equivalent code in;
Prev: 49067 Up: Map Next: 49112