A Novelty Program

See all articles from Sinc-Link v7 n3
Author(s): George Chambers
Publication: Sinc-Link
Pub Details: Sinc-Link v7 n3 (Volume 7, Issue 3)
Date: May/June 1989
Pages: 11

A NOVELTY PROGRAM

This listing provides a novel title display, which can be incorporated into another program. It was supplied to the club by David Solly; though it’s origional source is not apparent.

The program fires a program title onscreen in machine-gun fashion. The title can be up to 16 characters long. The title is placed in the first line of the program, and in this listing it is “BANG! YER DEAD!”

Line 60 places the title in the top left corner of the screen. It cannot be seen normally because the INK has been made the same colour as the PAPER. However the computer scans the area of the screen ( the two FOR/NEXT loops, X and Y) for the presence of pixels operated by the wording, and if, in LINE 90, it detects an operated pixel the routine in LINES 100-140 comes into play to spell the wording out in the mid-section of the screen.

G.F.C.

  60 INK 7: PAPER 1: BORDER 1: CLS : PRINT  INK 1;AT 0,0;"BANG! YER DEAD!"
70 FOR x=0 TO 127
80 FOR y=0 TO 7
90 IF NOT POINT (x,y+168) THEN GO TO 150
100 PLOT 2*x,3*y+80
110 PLOT 0,0: DRAW OVER 1;2*x,3*y+79
120 PLOT 0,0: DRAW OVER 1;2*x,3*y+79
130 BEEP .001,30
140 PLOT 2*x,3*y+81
150 NEXT y
160 NEXT x
170 CLS : RUN
9000 REM Disc Save
9010 PRINT USR 100: SAVE "Gun.B1" LINE 1

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.