Prev: A601 Up: Map Next: A61B
A609: Stop Actor
Used by the routine at ChooseVelocity.
Stops an actor moving and sets its timer to a random value between 08 and 0F which is how long it stays still for.
Input
IX Actor record
StopActor A609 XOR A Stop the actor by clearing its X and Y velocities.
A60A LD (IX+$06),A
A60D LD (IX+$07),A
A610 LD A,($9695) Fetch the random seed from RandomNumber.
A613 AND %00000111 Keep only bits 0-2.
A615 OR %00001000 Set bit 3.
A617 LD (IX+$02),A Set the velocity timer of the actor.
A61A RET Return.
Prev: A601 Up: Map Next: A61B