Publication: Syntax
Pub Details: Syntax/Syntax ZX80 v3 n8 (Volume 3, Issue 8)
Date: August 1982
Pages: 5
This simple subroutine simulates laser, cannon shots, and other effects used in arcade-type games. You can easily modify it for your particular needs. Try substituting different characters in the strings or varying the number of strings used. Line 210 sequentially overprints A$ through F$ in a rapid and dramatically effective manner. With a little imagination, you can produce a variety of startling “blasts”.
1 REM "BLAST"
10 SLOW
20 LET A$="▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓"
30 LET B$="XXXXXXXXXXXXXXXXXXXXXXXXXXX"
40 LET C$="***************************"
50 LET D$="==========================="
60 LET E$="---------------------------"
70 LET F$=" "
80 LET R=10
90 LET C=5
100 PRINT AT R,C-5;"█████"
110 PRINT AT R+1,C-5;"0 0"
200 IF INKEY$="" THEN GOTO 200
210 PRINT AT R,C;A$;AT R,C;B$;AT R,C;C$;AT R,C;D$;AT R,C;E$;AT R,C;F$
220 GOTO 200
SYNTACTIC SUM: 22447, 8K
Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.