• Jump to a subroutine starting in line 1000 that initializes some settings such as foreground and background colors and hiding the cursor. In lines 1010–1020, the »sprite« for the little spaceship is created. Lines 1025–1040 make a title screen and wait for the joystick button to be pressed. Line 1045 clears the screen, pauses for about a second and then sets up the »space« sound. It then returns to the main program starting in line 20.
• In the main program, a random number of bullet symbols (representing asteroids) is drawn in random locations on a line. The joystick is polled: if it's pushed to the left, move the spaceship sprite 10 units to the left. Same for the right. Then there is a check for a collision between spaceship and asteroid. If so, jump to the »Game Over« code in line 500. Otherwise, begin the main program from the top (it's an infinite loop).
• The Game Over code in lines 500–535 stops the sound, hides the spaceship, outputs a Game Over message and waits for the joystick button to be pressed. If it is, jump to the main program again.
to share – to copy, distribute and transmit the work
to remix – to adapt the work
Under the following conditions:
attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.