Screen Background for Games

Developer(s): Paul Qualls
Date: 1982
Type: Program
Platform(s): ZX81, TS 1000
Tags: Graphics

Fills the screen almost instantly with one character, as a background for games. The program asks for a character, copies it into all 704 positions of a string array in FAST mode, then prints the string from the top left in a single PRINT.

Needs 16K RAM. The string stays in memory after the program ends (as long as you don’t CLEAR or NEW), so you can delete the lines and reuse A$ in your own program. SYNTAX later printed a 16-byte machine-code screen fill as a faster alternative.

Published in Syntax June 1982 (Screen Background for Games).

Related Articles

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.

Related Content

Image Gallery

Source Code

  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;

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