.main14 LDA engineStatus \ If the engine is on, jump to main15 to skip the BNE main15 \ following instruction JSR FillUpFuelTank \ Fill up the fuel tank by one unit .main15 JSR ProcessVolumeKeys \ Check the volume keys and adjust the sound volume \ accordinglyName: MainLoop (Part 9 of 15) [Show more] Type: Subroutine Category: Main loop Summary: Fill up the tank if the engine is switched off, and process the volume keys 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 FillUpFuelTank (category: Flight model)
Fill up the fuel tank by 1/65th of a full tank every four iterations of the main loop
[X]
Subroutine ProcessVolumeKeys (category: Sound)
Adjust the volume when the volume keys are pressed
[X]
Variable engineStatus in workspace Main variable workspace
Engine status
[X]
Label main15 is local to this routine