Skip to navigation


3D geometry: SetObjectCoords (Part 10 of 11)

Name: SetObjectCoords (Part 10 of 11) [Show more] Type: Subroutine Category: 3D geometry Summary: Process the next dormant alien (object group 30) Deep dive: 3D objects
Context: See this subroutine in context in the source code References: No direct references to this subroutine in this source file
.objc11 CPY #30 \ If the object ID <> 30, jump to objc12 to return from BNE objc12 \ the subroutine LDA alienSlot \ Increment alienSlot to iterate through values 0 to 7 CLC \ and round again ADC #1 AND #7 STA alienSlot DEC objCount \ Decrement the loop counter to move on to the next \ alien in the group BEQ objc12 \ If we have processed all 8 items in the group, jump \ to objc12 to return from the subroutine JMP objc4 \ Otherwise loop back to objc4 to process the next item \ in the group