home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Game Killer
/
Game_Killer.bin
/
077.ABC.BAS
< prev
next >
Wrap
BASIC Source File
|
1979-12-31
|
5KB
|
150 lines
100 '
110 'Learning Lower Case ABC's
120 'by Randy Hawkins (for ONE THOUSAND Magazine)
130 '
135 COMMON RH: IF RH = 0 THEN SYSTEM
140 SCREEN 1: KEY OFF: RANDOMIZE TIMER
150 DIM S$(5): FOR A=0 TO 5: READ S$(A): NEXT A: M = 0
160 DATA "O2 L4 C C G G A A L2 G", "L4 F F E E L8 D D D D L2 C"
170 DATA "L4 G G L2 F L4 E E L2 D", "L8 G G L4 G L2 F L4 E E L2 D"
180 DATA "L4 C C G G A A L2 G", "L4 F F E E D D L2 C"
190 '
200 'Pick a Letter and Display It
210 '
220 N = INT(RND*26) + 1: CLS: GOSUB 770
230 ON INT(N/9)+1 GOTO 240,250,260
240 ON N GOSUB 480,490,500,510,520,530,540,550: GOTO 300
250 ON N-8 GOSUB 560,570,580,590,600,610,620,630,640: GOTO 300
260 ON N-17 GOSUB 650,660,670,680,690,700,710,720,730
270 '
280 'Wait for Keypress, Right One?
290 '
300 A$ = INKEY$: IF A$ = "" THEN 300
310 IF A$ = CHR$(27) THEN 1600
320 IF A$ = CHR$(N+64) OR A$ = CHR$(N+96) THEN 370
330 GOTO 300
340 '
350 'Correct Key Pressed
360 '
370 PLAY "MB" + S$(M): M = M + 1: IF M = 6 THEN M = 0
380 L$ = CHR$(N+64): FOR A = 6 TO 35: LOCATE 2,A
390 PRINT L$;: NEXT A: FOR A = 2 TO 24: LOCATE A,35
400 PRINT L$;: NEXT A: FOR A = 35 TO 6 STEP -1: LOCATE 24,A
410 PRINT L$;: NEXT A: FOR A = 24 TO 2 STEP -1
420 LOCATE A,6: PRINT L$;: NEXT A: A = TIMER
430 WHILE TIMER < A + 2: WEND: A = INT(RND*2)
440 B = INT(RND*2): COLOR A,B: GOTO 220
450 '
460 'Subroutines to Draw All 26 Letters
470 '
480 GOSUB 820: GOSUB 930: RETURN
490 GOSUB 820: GOSUB 960: RETURN
500 GOSUB 820: LINE (170,100)-(190,110),0,BF: RETURN
510 GOSUB 820: GOSUB 950: RETURN
520 GOSUB 500: LINE (145,100)-(185,105),2,BF: RETURN
530 GOSUB 1220: X = 180: Y = 55: GOSUB 840: RETURN
540 GOSUB 820: GOSUB 1000: RETURN
550 GOSUB 960: GOSUB 1050: RETURN
560 GOSUB 930: GOSUB 1070: RETURN
570 GOSUB 1000: GOSUB 1070: RETURN
580 GOSUB 960: GOSUB 1240: RETURN
590 GOSUB 960: RETURN
600 GOSUB 940: GOSUB 1050: GOSUB 1310: RETURN
610 GOSUB 940: GOSUB 1050: RETURN
620 GOSUB 820: RETURN
630 LINE (135,81)-(145,170),2,BF: GOSUB 820: RETURN
640 LINE (175,81)-(185,170),2,BF: GOSUB 820: RETURN
650 GOSUB 940: GOSUB 1060: LINE (170,100)-(190,110),0,BF: RETURN
660 GOSUB 1330: RETURN
670 GOSUB 1220: RETURN
680 GOSUB 930: GOSUB 1080: RETURN
690 GOSUB 1160: RETURN
700 GOSUB 1410: RETURN
710 GOSUB 1130: GOSUB 1510: RETURN
720 GOSUB 1000: GOSUB 1080: RETURN
730 GOSUB 1130: GOSUB 1540: RETURN
740 '
750 'Three Ruler Lines
760 '
770 LINE (60,30)-(260,30),1: LINE (60,80)-(260,80),1
780 LINE (60,130)-(260,130),1: RETURN
790 '
800 'Full, Upper Half, Lower Half Circles
810 '
820 CIRCLE (160,105),15,2: CIRCLE (160,105),25,2
830 PAINT (160,90),2,2: RETURN
840 CIRCLE (X,Y),15,2,0,3.14: CIRCLE (X,Y),25,2,0,3.14
850 LINE (X-25,Y)-(X-15,Y),2: LINE (X+15,Y)-(X+25,Y),2
860 PAINT (X,Y-20),2: RETURN
870 CIRCLE (X,Y),15,2,3.14,6.28: CIRCLE (X,Y),25,2,3.14,6.28
880 LINE (X-25,Y)-(X-15,Y),2: LINE (X+15,Y)-(X+25,Y),2
890 PAINT (X,Y+20),2: RETURN
900 '
910 'Full and Half Stems
920 '
930 LINE (175,81)-(185,129),2,BF: RETURN
940 LINE (135,81)-(145,129),2,BF: RETURN
950 LINE (175,41)-(185,129),2,BF: RETURN
960 LINE (135,41)-(145,129),2,BF: RETURN
970 '
980 'Descending Tail
990 '
1000 LINE (175,81)-(185,155),2,BF: X = 160: Y = 155
1010 GOSUB 870: RETURN
1020 '
1030 'Inverted "U", Superscript Dot, and Normal "U"
1040 '
1050 LINE (135,105)-(145,129),2,BF: LINE (175,105)-(185,129),2,BF
1060 X = 160: Y = 105: GOSUB 840: RETURN
1070 CIRCLE (180,60),5,2: PAINT (180,60),2: RETURN
1080 LINE (135,81)-(145,105),2,BF: LINE (175,81)-(185,105),2,BF
1090 X = 160: Y = 105: GOSUB 870: RETURN
1100 '
1110 'Diagonal Slash and "V"
1120 '
1130 LINE (135,129)-(175,81),2: LINE -(185,81),2
1140 LINE -(145,129),2: LINE -(135,129),2
1150 PAINT (160,105),2: RETURN
1160 LINE (135,81)-(155,129),2: LINE -(165,129),2
1170 LINE -(185,81),2: LINE -(175,81),2: LINE -(160,119),2
1180 LINE -(145,81),2: LINE -(135,81),2: PAINT (160,125),2: RETURN
1190 '
1200 'Crossed Line (T) and Right Half of "K"
1210 '
1220 LINE (155,55)-(165,129),2,BF
1230 LINE (135,75)-(185,85),2,BF: RETURN
1240 LINE (165,81)-(135,105),2: LINE -(165,129),2
1250 LINE -(179,129),2: LINE -(150,105),2: LINE -(179,81),2
1260 LINE -(165,81),2: PAINT (170,82),2
1270 PAINT (170,128),2: RETURN
1280 '
1290 'Second Half of "M" and Lower Case "S"
1300 '
1310 X = 200: Y = 105: GOSUB 840
1320 LINE (215,105)-(225,129),2,BF: RETURN
1330 FOR A=12 TO 28 STEP 16
1340 CIRCLE (160,95),A,2,0,4.71,.5
1350 CIRCLE (160,115),A,2,3.14,1.57,.5
1360 NEXT A: LINE (172,95)-(188,95),2
1370 LINE (132,115)-(148,115),2: PAINT (160,105),2: RETURN
1380 '
1390 'Lower Case "W"
1400 '
1410 LINE (135,81)-(142,129),2: LINE -(153,129),2
1420 LINE -(160,105),2: LINE -(167,129),2
1430 LINE -(178,129),2: LINE -(185,81),2
1440 LINE -(175,81),2: LINE -(172,119),2
1450 LINE -(160,81),2: LINE -(148,119),2
1460 LINE -(145,81),2: LINE -(135,81),2
1470 PAINT (160,85),2: RETURN
1480 '
1490 'Diagonal for "X" and Top/Bottom of "Z"
1500 '
1510 LINE (135,81)-(175,129),2: LINE -(185,129),2
1520 LINE -(145,81),2: LINE -(135,81),2
1530 PAINT (150,95),2: PAINT (170,115),2: RETURN
1540 LINE (135,81)-(175,88),2,BF
1550 LINE (145,122)-(185,129),2,BF: RETURN
1600 SCREEN 0: WIDTH 80: CLS: LOCATE 12,30
1610 PRINT "One Moment Please...": RUN "menu"