-
Notifications
You must be signed in to change notification settings - Fork 2
/
3DPIC1.TXT
86 lines (72 loc) · 1.45 KB
/
3DPIC1.TXT
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
'½ ¼ » º ¹ ¸ · ¶ µ ´ ³ ¾ ¿ À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï Ð Ñ Ò Ó Ô Õ Ö ×
'$DYNAMIC
DECLARE FUNCTION rndobj$ (l)
DECLARE FUNCTION nospc$ (a$)
CLS
SCREEN 12
PRINT "ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»"
PRINT "º Analysing 3-D Picture capability ( 3-D ActiveX Control ) º"
PRINT "º Press any key to start º"
PRINT "ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ"
k$ = INPUT$(1)
DIM obj$(200)
FOR i = 1 TO 200
obj$(i) = rndobj$(70)
NEXT
VIEW SCREEN (50, 100)-(600, 450)
FOR i = 1 TO 199
a1$ = obj$(i)
a2$ = obj$(i + 1)
a3$ = obj$(i + 2)
px1 = INT(200 * RND) + 200
py1 = INT(200 * RND) + 100
FOR j = 1 TO 40
PSET (px1, py1)
DRAW "S" + STR$(j)
DRAW a1$
SOUND 21000, 1
NEXT
CLS
NEXT
REM $STATIC
FUNCTION nospc$ (a$)
ad$ = ""
FOR i = 1 TO LEN(a$)
d$ = MID$(a$, i, 1)
IF d$ <> " " THEN ad$ = ad$ + d$
NEXT
nospc$ = ad$
END FUNCTION
FUNCTION rndobj$ (l)
a$ = ""
FOR i = 1 TO l
vl = INT(11 * RND) + 1
SELECT CASE vl
CASE 2
k$ = "U" + STR$(INT(20 * RND))
CASE 3
k$ = "D" + STR$(INT(20 * RND))
CASE 4
k$ = "L" + STR$(INT(20 * RND))
CASE 5
k$ = "R" + STR$(INT(20 * RND))
CASE 6
k$ = "E" + STR$(INT(20 * RND))
CASE 7
k$ = "F" + STR$(INT(20 * RND))
CASE 8
k$ = "G" + STR$(INT(20 * RND))
CASE 9
k$ = "H" + STR$(INT(20 * RND))
CASE 10
k$ = "C" + STR$(INT(15 * RND))
CASE 11
k$ = "A" + STR$(INT(3 * RND))
CASE 12
k$ = "TA" + STR$(INT(360 * RND))
CASE ELSE
END SELECT
a$ = a$ + nospc$(k$)
NEXT
rndobj$ = a$
END FUNCTION