Builder

Author(s): M. Turner
Publication: The Plotter
Pub Details: The Plotter v8 n7-8 (Volume 8, Issue 7-8)
Date: July - August 1990
Pages: 6

From SINCUS library disk #104 that we have in the CCAT/S library.

The DATA will form the bricks used as A, AA, and BB. Key in the DATA and run the program to obtain the graphics for these letters.

  10 REM   Builder
20 REM written by: M. Turner entered by M. Leidel, appeared in Apr. 85 Sinclair user
30:
40 FOR f=0 TO 47: READ d: POKE USR "A"+f,d: NEXT f
50 DATA 254,d,d,0,239,d,d,0,254,d,0,239,d,0,254,d,170,85,170,85,170,85,170,d,85,170,85,170,85,170,85,170,2,6,4,56,72,88,176,192,255,145,d,d,d,d,153,255
60 BORDER 4: PAPER 6: CLS : PRINT '" BB BUILDER BB"'" AA AA"'''"USE KEYS:"''"5,6,7,8 to lay bricks"'"CAPS/SHIFT to remove bricks"
70 PRINT ''"PRESS KEYS:"''"1 - 4 to change brick type"'"W for windows"'"D for doorways"'"Z to copy to printer"'"X to clear screen & start again"
80 PAUSE NOT PI: CLS
90 LET x=0: LET y=x
100 LET k=49: GO TO 180
110 PAUSE 1: PRINT AT x,y; INK 1;"E"
120 PAUSE NOT PI: LET k=CODE INKEY$
130 BEEP .01,k/4: PRINT INK i; PAPER p; BRIGHT b;AT x,y;a$
140 IF k=8 OR k=9 OR k=10 OR k=11 THEN PRINT AT x,y;" "
150 LET x=x+((k=54 OR k=10) AND x<21)-((k=55 OR k=11) AND x>0): LET y=y+((k=56 OR k=9) AND y<31)-((k=53 OR k=8) AND y>0)
160 IF k=122 THEN POKE 23658,8: INPUT "please enter title";t$: PRINT #0;AT 1,0;t$: POKE 23658,0: LPRINT '': COPY : LPRINT 't$'
170 IF k=120 THEN CLS : GO TO 90
180 IF k=49 THEN LET a$="A": LET i=2: LET p=7: LET b=0
190 IF k=50 THEN LET a$="B": LET i=3: LET p=7: LET b=1
200 IF k=51 THEN LET a$="C": LET i=4: LET p=6: LET b=0
210 IF k=52 THEN LET a$="D": LET i=4: LET p=6: LET b=1
220 IF k=119 THEN LET a$="F": LET i=0: LET p=5: LET b=1
230 IF k=100 THEN LET a$=" ": LET i=0
240 GO TO 110

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