.plin6 \ If we get here then the point is not part of a linked \ object, and object ID is in the range 12 to 15, so \ this is a bullet line PLA \ Pull the point ID from the stack and store it in GG STA GG LDA objectStatus,Y \ If bit 7 of the object's status byte is set, jump to BMI plin7 \ plin16 via plin7 \ If we get here then bit 7 of the object's status byte \ is clear LDA #%10000000 \ Set showLine to say that the line is not in view STA showLine RTS \ Return from the subroutine .plin7 JMP plin16 \ Jump down to plin16 with the bullet point ID in GG, to \ check distance and z-coordinates and return the final \ resultName: ProcessLine (Part 4 of 7) [Show more] Type: Subroutine Category: Visibility Summary: Process bullet lines Deep dive: Visibility checksContext: See this subroutine in context in the source code References: No direct references to this subroutine in this source file
[X]
Variable objectStatus in workspace Main variable workspace
Each object's status byte
[X]
Label plin16 in subroutine ProcessLine (Part 7 of 7)
[X]
Label plin7 is local to this routine
[X]
Variable showLine in workspace Main variable workspace
Determines whether a line is visible