Prev: 52870 Up: Map Next: 52908
52889: Script routine: (54) Move worm right if possible, otherwise choose new direction
Used by the routine at 48096.
Input
IX Address of complex state data for an entity
52889 CALL 54569 Check worm for collision with another impassable / pushable entity immediately to the right...
52892 JR NC,52908 ...and if a collision occurred, then have worm choose new direction
52894 CALL 54313 Move worm into room to the right, if appropriate...
52897 JR NC,52908 ...and if worm can't enter new room then have worm choose new direction
52899 INC (IX+5) Move worm right one character...
52902 INC (IX+7) ...
52905 JP 48096 Advance HL to next script instruction and execute
Prev: 52870 Up: Map Next: 52908