Prev: 29347 Up: Map Next: 29453
29442: Set Custard Vertical Speed
Used by the routine at HandleCustard.
Part of HandleCustard, used while the custard is still entering from the right of the screen. Gives the actor a random vertical speed (2 or 254), and then only moves it horizontally.
Input
IX Actor
SetCustardVerticalSpeed 29442 LD A,R Fetch a random number.
29444 AND %00000100 Keep only bit 2.
29446 SUB 2 Subtract 2 so that the speed is 254 or 2.
29448 LD (IX+5),A Update the vertical speed.
29451 JR MoveBouncingActor_Horizontal Jump to MoveBouncingActor_Horizontal.
Prev: 29347 Up: Map Next: 29453