Fireworks

Developer(s): Jack Hodgson
Date: 1983
Type: Program
Platform(s): ZX81, TS 1000
Tags: Graphics

A Fourth of July program: a rocket (O) climbs diagonally across the screen, bursts into a pattern of asterisks, and the program then decodes a hidden message, HAPPY-4TH-OF-JULY, by adding one to the code of each character of a string.

RUN it. Needs 2K: on a 1K machine it runs out of memory as the message starts.

Published in the BCS Sinclair-Timex User Group Newsletter July 1983 (Fireworks).

Image Gallery

Source Code

 110 LET B=5
 120 FOR A=15 TO 4 STEP -1
 130 PRINT AT A,B;"O"
 132 PRINT AT A,B;" "
 135 LET B=B+1
 140 NEXT A
 150 PRINT AT 4,16;"*"
 160 PRINT AT 3,15;"* *"
 170 PRINT AT 5,15;"* *"
 180 PRINT AT 2,13;"**   **"
 190 PRINT AT 6,14;"*   *"
 200 PRINT AT 1,11;"**       **"
 210 PRINT AT 7,14;"*    *";AT 8,13;"*      *";AT 9,12;"*        *"
 220 PRINT AT 2,10;"*  **   ** *";AT 10,11;"*         *"
 230 LET C$="G9OOX+3SG+NE+ITKX"
 240 FOR Z=1 TO LEN C$
 250 PRINT CHR$ (CODE C$(Z)+1);
 260 NEXT Z

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