File:ARROW (Listing) (3300726999).png
Summary
| Description |
Atari BASIC Listing for ARROW, a little game I wrote in February 1989. I recorded a video to show what the game looks like: <a href='http://www.flickr.com/photos/schoschie/3301606694/'>www.flickr.com/photos/schoschie/3301606694/</a> When it runs, this happens: • 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. |
| Date | |
| Source | ARROW (Listing) |
| Author | Niels Heidenreich from Hannover, Germany |
Licensing
- You are free:
- 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.
| This image was originally posted to Flickr by schoschie at https://flickr.com/photos/87569910@N00/3300726999. It was reviewed on 29 July 2022 by FlickreviewR 2 and was confirmed to be licensed under the terms of the cc-by-sa-2.0. |
Category:Flickr images reviewed by FlickreviewR 2#ARROW%20(Listing)%20(3300726999).pngCategory:Flickr images missing SDC creatorCategory:Flickr images missing SDC inceptionCategory:Flickr images missing SDC published in Category:Atari BASIC Category:Video game design Category:Source code