LDA firingStatus \ If firingStatus is zero then there are no bullets in BEQ main5 \ the air, so jump to main5 to skip updating the bullet \ positions JSR UpdateBullets \ Update the bullet positions LDA gunSoundCounter \ If gunSoundCounter = 0 then we don't have any gun BEQ main5 \ firing sounds to make, so jump to main5 to skip the \ gun sounds code DEC gunSoundCounter \ Decrement the sound counter in gunSoundCounter LDA #6 \ Make sound #6, the sound of our guns firing JSR MakeSoundName: MainLoop (Part 3 of 15) [Show more] Type: Subroutine Category: Main loop Summary: Make the sound of firing, if appropriate Deep dive: Program flow of the main game loopContext: See this subroutine in context in the source code References: No direct references to this subroutine in this source file
[X]
Subroutine MakeSound (category: Sound)
Make a sound
[X]
Subroutine UpdateBullets (category: The Theme)
Move the bullets through the air
[X]
Variable firingStatus in workspace Main variable workspace
Firing status
[X]
Variable gunSoundCounter in workspace Main variable workspace
Counter for the number of firing sounds we make when firing our guns (which makes the sound of two shots)
[X]
Label main5 in subroutine MainLoop (Part 4 of 15)