--- title: "Program Printout: Rear Gunner" type: "article" slug: "program-printout-rear-gunner" url: "http://localhost/article/program-printout-rear-gunner/" markdown_url: "http://localhost/article/program-printout-rear-gunner.md" published_at: "2020-10-27T17:09:13+00:00" modified_at: "2025-09-23T19:19:48+00:00" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "Rear Gunner is a program included specifically for the computer novice, to demonstrate the use of graphics mode and the maneuvering of a display under cursor control. The screen shows a graphic G, representing your target, and a plus sign which is your gunsight. Align the two with the cursor keys and blast your target…" category: - name: "Timex Sinclair User" slug: "timex-sinclair-user" taxonomy: "category" url: "http://localhost/category/periodicals/timex-sinclair-user/" post_tag: - name: "1983" slug: "year-1983" taxonomy: "post_tag" url: "http://localhost/tag/year-1983/" - name: "Downloadable" slug: "downloadable" taxonomy: "post_tag" url: "http://localhost/tag/downloadable/" - name: "TS 1000" slug: "ts1000" taxonomy: "post_tag" url: "http://localhost/tag/ts1000/" - name: "Type-in program" slug: "type-in-program" taxonomy: "post_tag" url: "http://localhost/tag/type-in-program/" model: - name: "Timex/Sinclair 1000" slug: "ts-1000" taxonomy: "model" url: "http://localhost/model/ts-1000/" publication: "Timex Sinclair User" publication_r: id: 10278 title: "Timex Sinclair User" type: "periodical" url: "http://localhost/periodical/timex-sinclair-user/" volume: "1" issue: "1" issues_articles: - id: 26866 title: "Timex Sinclair User n1" type: "issue" url: "http://localhost/issue/timex-sinclair-user-n1/" pages: "29" pubdate: "June 1983" download: "http://localhost/wp-content/uploads/2023/04/RearGunner.P.zip" archive_link: false volumeissue: "v1n1" article_media: - id: 57335 title: "Rear Gunner" type: "computer_media" url: "http://localhost/computer_media/rear-gunner/" --- # Program Printout: Rear Gunner Rear Gunner is a program included specifically for the computer novice, to demonstrate the use of graphics mode and the maneuvering of a display under cursor control. The screen shows a graphic G, representing your target, and a plus sign which is your gunsight. Align the two with the cursor keys and blast your target to oblivion with 0. ## Source Code: Rear Gunner ``` 5 PAUSE 50 10 LET A=5 20 LET B=7 30 LET C=INT (RND*26) 40 LET D=INT (RND*17) 50 PRINT AT D,C;"%G" 60 PRINT AT A,B;" + " 70 PRINT AT A-1,B;" " 80 PRINT AT A+1,B;" " 90 IF INKEY$="5" THEN LET B=B-1 100 IF INKEY$="8" THEN LET B=B+1 110 IF INKEY$="7" THEN LET A=A-1 120 IF INKEY$="6" THEN LET A=A+1 130 IF INKEY$="0" THEN GOTO 150 140 GOTO 50 150 IF D<>A THEN GOTO 50 160 IF C=B THEN GOTO 170 170 PRINT AT D-1,C;"\'. \.'" 180 PRINT AT D,C;" % " 190 PRINT AT D+1,C;"\.' \'." 200 RUN 210 SAVE "1018%3" 220 CLS 230 PRINT "REAR GUNNER" 240 PRINT ,,"USE CURSOR KEYS TO MOVE ""+"" USE ""0"" TO FIRE AT ""%G""" 250 PRINT "PRESS ENTER TO PLAY" 260 INPUT Z$ 270 RUN ```