Prev: D2AD Up: Map Next: D2E9
D2DE: The update routine for a conveyor that carries things forwards in U
Graphic 140. What stands on a conveyor is carried by the collision code, not here: when something lands on one of graphics 140 to 143, CONVEYOR_PUSH adds to its step the pair from CONVEYOR_STEPS for that graphic, on every other turn, once a turn -- bit 3 of the conveyor's +D says it has pushed this turn. All this routine does is clear that bit, so it can push again next turn.
Measured in the simulator in room 37: standing on graphic 140 he went up two units in U every other turn, and on graphic 142 the same in V.
Input
IX the object record
CONVEYOR_PLUS_U D2DE CALL DRAW_AT_L16_D8 the drawing nudge; ready to push again; move without falling
D2E1 RES 3,(IX+$0D)
D2E5 CALL CLIP_AND_MOVE
D2E8 RET
Prev: D2AD Up: Map Next: D2E9