Home » Archimedes archive » Acorn User » AU 1997-Xmas B.adf » Regulars » StarInfo/Whitington/Beanz
StarInfo/Whitington/Beanz
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
| Tape/disk: | Home » Archimedes archive » Acorn User » AU 1997-Xmas B.adf » Regulars |
| Filename: | StarInfo/Whitington/Beanz |
| Read OK: | ✔ |
| File size: | 05B0 bytes |
| Load address: | 0000 |
| Exec address: | 0000 |
File contents
1
2MODE 35:OFF
3r=0:g=0:b=0
4screenx=1280
5screeny=1024
6endloop=FALSE
7big=0:small=0
8PRINT'
9PRINT "Use left mouse button to draw, and right mouse button to start the beanz"
10PRINT "Press Space"
11G=GET
12CLS
13RECTANGLE 1280+110,150,60,60
14PROCDrawPalette
15 MOUSE ON
16 MOUSE RECTANGLE 100,100,screenx-200,screeny-100
17 a=1
18 REPEAT
19 a+=1
20 MOUSE X,Y,Z
21 IF Z=4 THEN PROCCircle(X,Y,4):big+=1
22 IF Z=%001 THEN endloop=TRUE
23 IF (a/2)=INT(a/2) THEN
24 PROCCycle(0)
25 PROCstats
26 ENDIF
27 UNTIL endloop
28 SYS &42 TO st
29 FOR xx=0 TO 1280 STEP 4
30 FOR yy=0 TO 1100 STEP 4
31 IF POINT(xx,yy)=0 THEN PROCCircle(xx,yy,1.6):small+=1
32 NEXT yy
33 REM PROCstats
34 NEXT xx
35 SYS &42 TO en
36 PROCstats
37 timepersph=(en-st)/small
38MOUSE RECTANGLE 0,0,1600,1200
39MOUSE TO 1280+110+30-6,150+30+10+4
40MOUSE RECTANGLE 1280+110+30-6,150+30+10+4,0,0
41REPEAT
42FOR T=0 TO 7:PROCCycle(0):NEXT
43 FOR T=0 TO 30
44 IF INKEY$(0)="s" THEN
45 *screensave screen
46 ENDIF
47 WAIT
48 NEXT
49
50UNTIL0
51
52END
53
54DEF PROCCircle(x,y,size)
55FOR r=15 TO 1 STEP -1
56GCOL r
57CIRCLE FILL x,y,r*size
58NEXT
59ENDPROC
60
61DEF PROCCycle(w)
62 FOR c=1 TO 15
63 COLOUR c,127*(SIN RAD r+1),127*(COS RAD(g+16)+1),127*(-SIN RAD(b+24)+1)
64 r+=5
65 g+=6
66 b+=7
67 NEXT
68 r-=70
69 g-=98
70 b-=129
71ENDPROC
72
73DEF PROCDrawPalette
74FOR col=0 TO 15
75GCOL col
76RECTANGLE FILL 1320+(col*10),300,50
77NEXT
78ENDPROC
79
80DEF PROCstats
81PRINT TAB(83,6)" Beanz"
82PRINT TAB(83,8)"J.Whitington"
83PRINT TAB(83,14)"Large Spheres";
84PRINT TAB(83,16)STR$(big);
85PRINT TAB(83,19)"Small Spheres";
86PRINT TAB(83,21)STR$(small);
87PRINT TAB(83,23)"Palette";
88ENDPROC
� 35:�
r=0:g=0:b=0
screenx=1280
screeny=1024
endloop=�
big=0:small=0
�'
P� "Use left mouse button to draw, and right mouse button to start the beanz"
� "Press Space"
G=�
�
ȓ 1280+110,150,60,60
�DrawPalette
ȗ �
, ȗ ȓ 100,100,screenx-200,screeny-100
a=1
�
a+=1
ȗ X,Y,Z
$ � Z=4 � �Circle(X,Y,4):big+=1
� Z=%001 � endloop=�
� (a/2)=�(a/2) �
�Cycle(0)
�stats
�
� endloop
ș &42 � st
� xx=0 � 1280 � 4
� yy=0 � 1100 � 4
0 � �xx,yy)=0 � �Circle(xx,yy,1.6):small+=1
� yy
! � PROCstats
" � xx
# ș &42 � en
$
�stats
% timepersph=(en-st)/small
&ȗ ȓ 0,0,1600,1200
'"ȗ � 1280+110+30-6,150+30+10+4
('ȗ ȓ 1280+110+30-6,150+30+10+4,0,0
)�
*� T=0 � 7:�Cycle(0):�
+ � T=0 � 30
, � �(0)="s" �
- *screensave screen
. �
/ Ȗ
0 �
1
2�0
3
4�
5
6� �Circle(x,y,size)
7� r=15 � 1 � -1
8� r
9ȏ Ȑ x,y,r*size
:�
;�
<
=� �Cycle(w)
> � c=1 � 15
?< � c,127*(� � r+1),127*(� �(g+16)+1),127*(-� �(b+24)+1)
@
r+=5
A
g+=6
B
b+=7
C �
D r-=70
E g-=98
F b-=129
G�
H
I� �DrawPalette
J� col=0 � 15
K � col
Lȓ Ȑ 1320+(col*10),300,50
M�
N�
O
P� �stats
Q� �83,6)" Beanz"
R� �83,8)"J.Whitington"
S� �83,14)"Large Spheres";
T� �83,16)�(big);
U� �83,19)"Small Spheres";
V� �83,21)�(small);
W� �83,23)"Palette";
X�
� 00000000 0d 00 01 04 0d 00 02 0a eb 20 33 35 3a 87 0d 00 |......... 35:...|
00000010 03 0f 72 3d 30 3a 67 3d 30 3a 62 3d 30 0d 00 04 |..r=0:g=0:b=0...|
00000020 10 73 63 72 65 65 6e 78 3d 31 32 38 30 0d 00 05 |.screenx=1280...|
00000030 10 73 63 72 65 65 6e 79 3d 31 30 32 34 0d 00 06 |.screeny=1024...|
00000040 0d 65 6e 64 6c 6f 6f 70 3d a3 0d 00 07 11 62 69 |.endloop=.....bi|
00000050 67 3d 30 3a 73 6d 61 6c 6c 3d 30 0d 00 08 06 f1 |g=0:small=0.....|
00000060 27 0d 00 09 50 f1 20 22 55 73 65 20 6c 65 66 74 |'...P. "Use left|
00000070 20 6d 6f 75 73 65 20 62 75 74 74 6f 6e 20 74 6f | mouse button to|
00000080 20 64 72 61 77 2c 20 61 6e 64 20 72 69 67 68 74 | draw, and right|
00000090 20 6d 6f 75 73 65 20 62 75 74 74 6f 6e 20 74 6f | mouse button to|
000000a0 20 73 74 61 72 74 20 74 68 65 20 62 65 61 6e 7a | start the beanz|
000000b0 22 0d 00 0a 13 f1 20 22 50 72 65 73 73 20 53 70 |"..... "Press Sp|
000000c0 61 63 65 22 0d 00 0b 07 47 3d a5 0d 00 0c 05 db |ace"....G=......|
000000d0 0d 00 0d 19 c8 93 20 31 32 38 30 2b 31 31 30 2c |...... 1280+110,|
000000e0 31 35 30 2c 36 30 2c 36 30 0d 00 0e 10 f2 44 72 |150,60,60.....Dr|
000000f0 61 77 50 61 6c 65 74 74 65 0d 00 0f 0b 20 20 20 |awPalette.... |
00000100 c8 97 20 ee 0d 00 10 2c 20 20 20 c8 97 20 c8 93 |.. ...., .. ..|
00000110 20 31 30 30 2c 31 30 30 2c 73 63 72 65 65 6e 78 | 100,100,screenx|
00000120 2d 32 30 30 2c 73 63 72 65 65 6e 79 2d 31 30 30 |-200,screeny-100|
00000130 0d 00 11 0a 20 20 20 61 3d 31 0d 00 12 08 20 20 |.... a=1.... |
00000140 20 f5 0d 00 13 0b 20 20 20 61 2b 3d 31 0d 00 14 | ..... a+=1...|
00000150 0f 20 20 20 c8 97 20 58 2c 59 2c 5a 0d 00 15 24 |. .. X,Y,Z...$|
00000160 20 20 20 e7 20 5a 3d 34 20 8c 20 f2 43 69 72 63 | . Z=4 . .Circ|
00000170 6c 65 28 58 2c 59 2c 34 29 3a 62 69 67 2b 3d 31 |le(X,Y,4):big+=1|
00000180 0d 00 16 1b 20 20 20 e7 20 5a 3d 25 30 30 31 20 |.... . Z=%001 |
00000190 8c 20 65 6e 64 6c 6f 6f 70 3d b9 0d 00 17 17 20 |. endloop=..... |
000001a0 20 20 e7 20 28 61 2f 32 29 3d a8 28 61 2f 32 29 | . (a/2)=.(a/2)|
000001b0 20 8c 0d 00 18 10 20 20 20 f2 43 79 63 6c 65 28 | ..... .Cycle(|
000001c0 30 29 0d 00 19 0d 20 20 20 f2 73 74 61 74 73 0d |0).... .stats.|
000001d0 00 1a 08 20 20 20 cd 0d 00 1b 10 20 20 20 fd 20 |... ..... . |
000001e0 65 6e 64 6c 6f 6f 70 0d 00 1c 12 20 20 20 c8 99 |endloop.... ..|
000001f0 20 26 34 32 20 b8 20 73 74 0d 00 1d 18 20 20 20 | &42 . st.... |
00000200 e3 20 78 78 3d 30 20 b8 20 31 32 38 30 20 88 20 |. xx=0 . 1280 . |
00000210 34 0d 00 1e 18 20 20 20 e3 20 79 79 3d 30 20 b8 |4.... . yy=0 .|
00000220 20 31 31 30 30 20 88 20 34 0d 00 1f 30 20 20 20 | 1100 . 4...0 |
00000230 e7 20 b0 78 78 2c 79 79 29 3d 30 20 8c 20 f2 43 |. .xx,yy)=0 . .C|
00000240 69 72 63 6c 65 28 78 78 2c 79 79 2c 31 2e 36 29 |ircle(xx,yy,1.6)|
00000250 3a 73 6d 61 6c 6c 2b 3d 31 0d 00 20 0b 20 20 20 |:small+=1.. . |
00000260 ed 20 79 79 0d 00 21 12 20 20 20 f4 20 50 52 4f |. yy..!. . PRO|
00000270 43 73 74 61 74 73 0d 00 22 0b 20 20 20 ed 20 78 |Cstats..". . x|
00000280 78 0d 00 23 12 20 20 20 c8 99 20 26 34 32 20 b8 |x..#. .. &42 .|
00000290 20 65 6e 0d 00 24 0d 20 20 20 f2 73 74 61 74 73 | en..$. .stats|
000002a0 0d 00 25 1f 20 20 20 74 69 6d 65 70 65 72 73 70 |..%. timepersp|
000002b0 68 3d 28 65 6e 2d 73 74 29 2f 73 6d 61 6c 6c 0d |h=(en-st)/small.|
000002c0 00 26 17 c8 97 20 c8 93 20 30 2c 30 2c 31 36 30 |.&... .. 0,0,160|
000002d0 30 2c 31 32 30 30 0d 00 27 22 c8 97 20 b8 20 31 |0,1200..'".. . 1|
000002e0 32 38 30 2b 31 31 30 2b 33 30 2d 36 2c 31 35 30 |280+110+30-6,150|
000002f0 2b 33 30 2b 31 30 2b 34 0d 00 28 27 c8 97 20 c8 |+30+10+4..('.. .|
00000300 93 20 31 32 38 30 2b 31 31 30 2b 33 30 2d 36 2c |. 1280+110+30-6,|
00000310 31 35 30 2b 33 30 2b 31 30 2b 34 2c 30 2c 30 0d |150+30+10+4,0,0.|
00000320 00 29 05 f5 0d 00 2a 19 e3 20 54 3d 30 20 b8 20 |.)....*.. T=0 . |
00000330 37 3a f2 43 79 63 6c 65 28 30 29 3a ed 0d 00 2b |7:.Cycle(0):...+|
00000340 0f 20 e3 20 54 3d 30 20 b8 20 33 30 0d 00 2c 11 |. . T=0 . 30..,.|
00000350 20 e7 20 bf 28 30 29 3d 22 73 22 20 8c 0d 00 2d | . .(0)="s" ...-|
00000360 17 20 2a 73 63 72 65 65 6e 73 61 76 65 20 73 63 |. *screensave sc|
00000370 72 65 65 6e 0d 00 2e 06 20 cd 0d 00 2f 07 20 c8 |reen.... .../. .|
00000380 96 0d 00 30 06 20 ed 0d 00 31 04 0d 00 32 06 fd |...0. ...1...2..|
00000390 30 0d 00 33 04 0d 00 34 05 e0 0d 00 35 04 0d 00 |0..3...4....5...|
000003a0 36 17 dd 20 f2 43 69 72 63 6c 65 28 78 2c 79 2c |6.. .Circle(x,y,|
000003b0 73 69 7a 65 29 0d 00 37 13 e3 20 72 3d 31 35 20 |size)..7.. r=15 |
000003c0 b8 20 31 20 88 20 2d 31 0d 00 38 07 e6 20 72 0d |. 1 . -1..8.. r.|
000003d0 00 39 14 c8 8f 20 c8 90 20 78 2c 79 2c 72 2a 73 |.9... .. x,y,r*s|
000003e0 69 7a 65 0d 00 3a 05 ed 0d 00 3b 05 e1 0d 00 3c |ize..:....;....<|
000003f0 04 0d 00 3d 0f dd 20 f2 43 79 63 6c 65 28 77 29 |...=.. .Cycle(w)|
00000400 0d 00 3e 0f 20 e3 20 63 3d 31 20 b8 20 31 35 0d |..>. . c=1 . 15.|
00000410 00 3f 3c 20 20 fb 20 63 2c 31 32 37 2a 28 b5 20 |.?< . c,127*(. |
00000420 b2 20 72 2b 31 29 2c 31 32 37 2a 28 9b 20 b2 28 |. r+1),127*(. .(|
00000430 67 2b 31 36 29 2b 31 29 2c 31 32 37 2a 28 2d b5 |g+16)+1),127*(-.|
00000440 20 b2 28 62 2b 32 34 29 2b 31 29 0d 00 40 0a 20 | .(b+24)+1)..@. |
00000450 20 72 2b 3d 35 0d 00 41 0a 20 20 67 2b 3d 36 0d | r+=5..A. g+=6.|
00000460 00 42 0a 20 20 62 2b 3d 37 0d 00 43 06 20 ed 0d |.B. b+=7..C. ..|
00000470 00 44 0b 20 20 72 2d 3d 37 30 0d 00 45 0b 20 20 |.D. r-=70..E. |
00000480 67 2d 3d 39 38 0d 00 46 0c 20 20 62 2d 3d 31 32 |g-=98..F. b-=12|
00000490 39 0d 00 47 05 e1 0d 00 48 04 0d 00 49 12 dd 20 |9..G....H...I.. |
000004a0 f2 44 72 61 77 50 61 6c 65 74 74 65 0d 00 4a 10 |.DrawPalette..J.|
000004b0 e3 20 63 6f 6c 3d 30 20 b8 20 31 35 0d 00 4b 09 |. col=0 . 15..K.|
000004c0 e6 20 63 6f 6c 0d 00 4c 1e c8 93 20 c8 90 20 31 |. col..L... .. 1|
000004d0 33 32 30 2b 28 63 6f 6c 2a 31 30 29 2c 33 30 30 |320+(col*10),300|
000004e0 2c 35 30 0d 00 4d 05 ed 0d 00 4e 05 e1 0d 00 4f |,50..M....N....O|
000004f0 04 0d 00 50 0c dd 20 f2 73 74 61 74 73 0d 00 51 |...P.. .stats..Q|
00000500 17 f1 20 8a 38 33 2c 36 29 22 20 20 20 20 42 65 |.. .83,6)" Be|
00000510 61 6e 7a 22 0d 00 52 1a f1 20 8a 38 33 2c 38 29 |anz"..R.. .83,8)|
00000520 22 4a 2e 57 68 69 74 69 6e 67 74 6f 6e 22 0d 00 |"J.Whitington"..|
00000530 53 1d f1 20 8a 38 33 2c 31 34 29 22 4c 61 72 67 |S.. .83,14)"Larg|
00000540 65 20 53 70 68 65 72 65 73 22 3b 0d 00 54 14 f1 |e Spheres";..T..|
00000550 20 8a 38 33 2c 31 36 29 c3 28 62 69 67 29 3b 0d | .83,16).(big);.|
00000560 00 55 1d f1 20 8a 38 33 2c 31 39 29 22 53 6d 61 |.U.. .83,19)"Sma|
00000570 6c 6c 20 53 70 68 65 72 65 73 22 3b 0d 00 56 16 |ll Spheres";..V.|
00000580 f1 20 8a 38 33 2c 32 31 29 c3 28 73 6d 61 6c 6c |. .83,21).(small|
00000590 29 3b 0d 00 57 17 f1 20 8a 38 33 2c 32 33 29 22 |);..W.. .83,23)"|
000005a0 50 61 6c 65 74 74 65 22 3b 0d 00 58 05 e1 0d ff |Palette";..X....|
000005b0
.