-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
51a77f5
commit 3f9bff0
Showing
15 changed files
with
151 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
10 CLS | ||
20 PRINT TAB(0,0); | ||
30 PRINT "UP ";INKEY(-58);" " | ||
40 PRINT "DOWN ";INKEY(-42);" " | ||
50 PRINT "LEFT ";INKEY(-26);" " | ||
60 PRINT "RIGHT ";INKEY(-122);" " | ||
70 GOTO 20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
10 REM Conway's Game of Life | ||
20 : | ||
30 ON ERROR GOTO 510 | ||
40 W%=38 | ||
50 H%=26 | ||
60 DIM L%(W%,H%), N%(W%,H%) | ||
70 MODE 8 | ||
80 VDU 23,1,0 | ||
90 FOR I%=1 TO W% | ||
100 FOR J%=1 TO H% | ||
110 IF RND(1)>=.7 N%(I%,J%)=1 ELSE N%(I%,J%)=0 | ||
120 NEXT | ||
130 NEXT | ||
140 : | ||
150 COLOUR 13 | ||
160 FOR I%=0 TO W%+1 | ||
170 PRINT TAB(I%,0);"+" | ||
180 PRINT TAB(I%,H%+1);"+" | ||
190 NEXT | ||
200 FOR I%=0 TO H%+1 | ||
210 PRINT TAB(0,I%);"+" | ||
220 PRINT TAB(W%+1,I%);"+" | ||
230 NEXT | ||
240 G%=0 | ||
250 COLOUR 14 | ||
260 PRINT TAB(0,H%+3);"Generation: ";G%; | ||
270 COLOUR 15 | ||
280 FOR J%=1 TO H% | ||
290 PRINT TAB(1,J%); | ||
300 FOR I%=1 TO W% | ||
310 C%=N%(I%,J%): L%(I%,J%)=C% | ||
320 IF C% VDU 42 ELSE VDU 32 | ||
330 NEXT | ||
340 NEXT | ||
350 FOR I%=1 TO W% | ||
360 FOR J%=1 TO H% | ||
370 C%=0 | ||
380 FOR K%=I%-1 TO I%+1 | ||
390 IF K%=0 OR K%>W% THEN 440 | ||
400 FOR M%=J%-1 TO J%+1 | ||
410 IF M%=0 OR M%>H% OR (K%=I% AND M%=J%) GOTO 430 | ||
420 C%=C%+L%(K%,M%) | ||
430 NEXT | ||
440 NEXT | ||
450 IF C%=2 THEN N%(I%,J%)=L%(I%,J%) ELSE N%(I%,J%)=-(C%=3) | ||
460 NEXT | ||
470 NEXT | ||
480 G%=G%+1 | ||
490 GOTO 250 | ||
500 : | ||
510 ON ERROR OFF | ||
520 VDU 23,1,1 | ||
530 PRINT TAB(0,0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
10 REM Palette Test | ||
20 : | ||
30 MODE 2 | ||
30 MODE 8 | ||
40 FOR A%=128 TO 143 | ||
50 COLOUR A% | ||
60 PRINT " "; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
10 REM Scrolling Stars Demo | ||
15 : | ||
20 MODE 2 | ||
20 MODE 8 | ||
30 VDU 23,1,0 | ||
40 *FX 19 | ||
50 GCOL 0,RND(16) | ||
60 PLOT &40,1279,RND(1024) | ||
60 PLOT 69,1279,RND(1024) | ||
70 VDU 23,7,0,1,1 | ||
80 GOTO 40 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
10 REM Scramble | ||
20 : | ||
30 MODE 2 | ||
30 MODE 8 | ||
40 VDU 23,1,0 | ||
50 LET Y%=512 | ||
60 *FX 19 | ||
70 GCOL 0,5 | ||
80 DRAW 1279,0,1279,Y% | ||
90 GCOL 0,15 | ||
100 PLOT &40,1279,Y% | ||
100 PLOT 69,1279,Y% | ||
110 VDU 23,7,0,1,1 | ||
120 Y%=Y%+4*(RND(3)-2) | ||
130 GOTO 60 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
10 REM Sprite Demo | ||
20 : | ||
30 MODE 2 | ||
30 MODE 8 | ||
40 SW%=320 | ||
50 SH%=200 | ||
60 C%=16 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters