Created
August 5, 2024 16:32
-
-
Save darko-mesaros/b1e179b9e3af80e9eeb058daa5f260b3 to your computer and use it in GitHub Desktop.
Prints text in Random location on an Apple //
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
10 GOSUB 1100 | |
11 HOME | |
20 GOSUB 1000 | |
30 GOSUB 30 | |
40 HTAB X: VTAB Y | |
50 PRINT "Hello Internet"; | |
60 FOR I = 1 TO 1000 | |
70 NEXT I | |
80 GOTO 11 | |
100 REM randomize x and y | |
110 X = INT(RND(1)*22+1) | |
120 Y = INT(RND(1)*24+1) | |
130 RETURN | |
1000 REM draw stars | |
1010 FOR J = TO 8 | |
1020 GOSUB 1300 | |
1030 HTAB X: VTAB Y | |
1040 PRINT "*"; | |
1050 NEXT J | |
1060 RETURN | |
1100 REM welcome screenS | |
1110 HOME | |
1120 HTAB 16: VTAB 12 | |
1130 PRINT "Apple //c" | |
1140 FOR K = 1 TO 2000 | |
1150 NEXT K | |
1160 HTAB 10: VTAB 13 | |
1170 PRINT "Welcome to the future" | |
1180 FOR L = 1 TO 4000 | |
1190 NEXT L | |
1200 RETURN | |
1300 REM star rnd | |
1310 X = INT(RND(1)*40+1) | |
1320 Y = INT(RND(1)*24+1) | |
1330 RETURN |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment