Prev: 52860 Up: Map Next: 52889
52870: Script routine: (53) Move worm left if possible, otherwise choose new direction
Used by the routine at 48096.
Input
IX Address of complex state data for an entity
52870 CALL 54666 Check worm for collision with another impassable / pushable entity immediately to the left...
52873 JR NC,52908 ...and if a collision occurred, then have worm choose new direction
52875 CALL 54348 Move worm into room to the left, if appropriate...
52878 JR NC,52908 ...and if worm can't enter new room then have worm choose new direction
52880 DEC (IX+5) Move worm left one character...
52883 DEC (IX+7) ...
52886 JP 48096 Advance HL to next script instruction and execute
Prev: 52860 Up: Map Next: 52889