A dark or solid background often gives a better effect for printing or plotting in games. With an 8K ROM and 16K RAM, an almost instant background is possible in BASIC.
Here’s how the following lines work. First, pick the character you want to fill the screen with. Then by filling the array A$ with this character, you lengthen the string to 704 bytes (exact screen size). When you enter PRINT A$, you’ll get an almost instant screen fill. Before printing your string, enter PRINT AT 0,0; (line 90). This lets you start printing at the first byte of the screen.
You can store this string on tape or in your program as long as you don’t type CLEAR or NEW. After running the program, you can delete all the lines and then use the string in another program. For a nice effect, try using an inverse space and then unplotting a line.
10 FAST
20 DIM A$(704)
30 INPUT A$
40 FOR F=1 TO 704
50 LET A$(F)=A$
60 NEXT F
70 PRINT AT 0,0;
80 PRINT A$
90 PRINT AT 0,0;
SYNTACTIC SUM: 6678, 8K
Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.