Home » Recent acquisitions » Acorn ADFS disks » adfs_ArchimedesWorld_199403_2.adf » Disk2Mar94 » !AWMar94/Goodies/yass/!Yass2/Savers/Fish

!AWMar94/Goodies/yass/!Yass2/Savers/Fish

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 » Recent acquisitions » Acorn ADFS disks » adfs_ArchimedesWorld_199403_2.adf » Disk2Mar94
Filename: !AWMar94/Goodies/yass/!Yass2/Savers/Fish
Read OK:
File size: 0AE2 bytes
Load address: 0000
Exec address: 0000
File contents
   10REM
   20REM  Yass 2 Screen Saver Module : Fish
   30REM
   40REM  LEN copyright Ian Palmer, 1993
   50REM
   60
   70DEFFNfish_over(X%,Y%,W%,H%,x%,y%,w%,h%)
   90IF X%<x% AND (X%+W%)<x% THEN =FALSE
  100IF X%>(x%+w%) AND (X%+W%)>(x%+w%) THEN =FALSE
  110IF Y%<y% AND (Y%+H%)<y% THEN =FALSE
  120IF Y%>(y%+h%) AND (Y%+H%)>(y%+h%) THEN =FALSE
  130=TRUE
  140
  150DEFFNfish_start
  160LOCAL F$,L%,A%,B%,P%,X%,Y%,Z%:fish_n%=3
  161IF MODE=22 THEN =TRUE
  170F$="<Yass2$Dir>.Resources.Fish":SYS "OS_File",5,F$ TO A%,,,,L%
  180IF A%<>1 THEN =TRUE
  190fish_area%=FNmalloc(L%+4):fish_s%=FNmalloc(16)
  200fishes%=FNmalloc(32*(fish_n%+1)):P%=fish_area%
  210IF fishes%=0 THEN A%=FNfish_stop:=TRUE
  220!fish_area%=L%+4:SYS "OS_SpriteOp",265,P%
  230SYS "OS_SpriteOp",266,P%,F$
  240SYS &35,-1,4 TO ,,X%:SYS &35,-1,5 TO ,,Y%
  250!fish_s%=1:fish_s%!4=X%:fish_s%!8=1:fish_s%!12=Y%
  260FOR A%=0 TO fish_n%:!(fishes%+A%*32+28)=0:NEXT
  270FOR A%=0 TO fish_n%:!(fishes%+A%*32+24)=A%+1:F$="f"+STR$(!(fishes%+A%*32+24))
  280SYS "OS_SpriteOp",296,P%,F$ TO ,,,!(fishes%+A%*32+16),!(fishes%+A%*32+20)
  290!(fishes%+A%*32+16)=!(fishes%+A%*32+16) << 1
  300!(fishes%+A%*32+20)=!(fishes%+A%*32+20) << 1
  310REPEAT
  320  !(fishes%+A%*32)=RND(max_x%-!(fishes%+A%*32+16))
  330  !(fishes%+A%*32+4)=RND(max_y%-!(fishes%+A%*32+20)):Z%=0
  340  FOR B%=0 TO A%
  350    IF B%<>A% THEN Z%=Z% OR FNfish_over(!(fishes%+A%*32),!(fishes%+A%*32+4),!(fishes%+A%*32+16),!(fishes%+A%*32+20),!(fishes%+B%*32),!(fishes%+B%*32+4),!(fishes%+B%*32+16),!(fishes%+B%*32+20))
  360  NEXT
  370UNTIL Z%=0
  380!(fishes%+A%*32+8)=RND(6):!(fishes%+A%*32+12)=RND(9)-5
  390SYS "ColourTrans_SelectTable",P%,F$,-1,-1,0,2 TO ,,,,B%:L%=FNmalloc(B%):SYS "ColourTrans_SelectTable",P%,F$,-1,-1,L%,2
  400!(fishes%+A%*32+28)=L%
  410NEXT:IF L%=0 THEN A%=FNfish_stop:=TRUE
  420PROCclearscreen(-1)
  430=0
  440
  450DEFFNfish_poll
  460LOCAL F$,A%,B%,P%,x%,y%,X%,Y%::P%=fish_area%
  470FOR A%=0 TO fish_n%:F$="f"+STR$(!(fishes%+A%*32+24))
  480X%=!(fishes%+A%*32):Y%=!(fishes%+A%*32+4):x%=0:y%=0
  490SYS "OS_SpriteOp",308,P%,F$,X%,Y%,8,fish_s%,!(fishes%+A%*32+28)
  500X%+=!(fishes%+A%*32+8)
  510IF X%<=0 OR X%>=(max_x%-!(fishes%+A%*32+16)) THEN x%=TRUE
  520FOR B%=0 TO fish_n%
  530  IF A%<>B% THEN x%=x% OR FNfish_over(X%,Y%,!(fishes%+A%*32+16),!(fishes%+A%*32+20),!(fishes%+B%*32),!(fishes%+B%*32+4),!(fishes%+B%*32+16),!(fishes%+B%*32+20))
  540NEXT
  550IF x% THEN X%-=!(fishes%+A%*32+8):!(fishes%+A%*32+8)=-!(fishes%+A%*32+8):SYS "OS_SpriteOp",303,P%,F$
  560Y%+=!(fishes%+A%*32+12)
  570IF Y%<=0 OR Y%>=(max_y%-!(fishes%+A%*32+20)) THEN y%=TRUE
  580FOR B%=0 TO fish_n%
  590  IF A%<>B% THEN y%=y% OR FNfish_over(X%,Y%,!(fishes%+A%*32+16),!(fishes%+A%*32+20),!(fishes%+B%*32),!(fishes%+B%*32+4),!(fishes%+B%*32+16),!(fishes%+B%*32+20))
  600NEXT
  610IF y% THEN Y%-=!(fishes%+A%*32+12):!(fishes%+A%*32+12)=-!(fishes%+A%*32+12)
  620!(fishes%+A%*32)=X%:!(fishes%+A%*32+4)=Y%
  630NEXT:IF now_going%>12000 THEN =TRUE
  640=0
  650
  660DEFFNfish_stop
  670LOCAL A%
  680PROCfree(fish_area%):PROCfree(fish_s%)
  690IF fishes% THEN:FOR A%=0 TO fish_n%:PROCfree(!(fishes%+A%*32+28)):NEXT
  700PROCfree(fishes%)
  710ENDIF
  720=0
  730

�
(�  Yass 2 Screen Saver Module : Fish
�
(#�  � copyright Ian Palmer, 1993
2�
<
F(ݤfish_over(X%,Y%,W%,H%,x%,y%,w%,h%)
Z� X%<x% � (X%+W%)<x% � =�
d'� X%>(x%+w%) � (X%+W%)>(x%+w%) � =�
n� Y%<y% � (Y%+H%)<y% � =�
x'� Y%>(y%+h%) � (Y%+H%)>(y%+h%) � =�
�=�
�
�ݤfish_start
�'� F$,L%,A%,B%,P%,X%,Y%,Z%:fish_n%=3
�� �=22 � =�
�@F$="<Yass2$Dir>.Resources.Fish":ș "OS_File",5,F$ � A%,,,,L%
�� A%<>1 � =�
�0fish_area%=�malloc(L%+4):fish_s%=�malloc(16)
�1fishes%=�malloc(32*(fish_n%+1)):P%=fish_area%
�"� fishes%=0 � A%=�fish_stop:=�
�,!fish_area%=L%+4:ș "OS_SpriteOp",265,P%
�ș "OS_SpriteOp",266,P%,F$
�)ș &35,-1,4 � ,,X%:ș &35,-1,5 � ,,Y%
�5!fish_s%=1:fish_s%!4=X%:fish_s%!8=1:fish_s%!12=Y%
,� A%=0 � fish_n%:!(fishes%+A%*32+28)=0:�
K� A%=0 � fish_n%:!(fishes%+A%*32+24)=A%+1:F$="f"+�(!(fishes%+A%*32+24))
Kș "OS_SpriteOp",296,P%,F$ � ,,,!(fishes%+A%*32+16),!(fishes%+A%*32+20)
"0!(fishes%+A%*32+16)=!(fishes%+A%*32+16) << 1
,0!(fishes%+A%*32+20)=!(fishes%+A%*32+20) << 1
6�
@4  !(fishes%+A%*32)=�(max_x%-!(fishes%+A%*32+16))
J;  !(fishes%+A%*32+4)=�(max_y%-!(fishes%+A%*32+20)):Z%=0
T  � B%=0 � A%
^�    � B%<>A% � Z%=Z% � �fish_over(!(fishes%+A%*32),!(fishes%+A%*32+4),!(fishes%+A%*32+16),!(fishes%+A%*32+20),!(fishes%+B%*32),!(fishes%+B%*32+4),!(fishes%+B%*32+16),!(fishes%+B%*32+20))
h  �
r
� Z%=0
|6!(fishes%+A%*32+8)=�(6):!(fishes%+A%*32+12)=�(9)-5
�vș "ColourTrans_SelectTable",P%,F$,-1,-1,0,2 � ,,,,B%:L%=�malloc(B%):ș "ColourTrans_SelectTable",P%,F$,-1,-1,L%,2
�!(fishes%+A%*32+28)=L%
��:� L%=0 � A%=�fish_stop:=�
��clearscreen(-1)
�=0
�
�ݤfish_poll
�,� F$,A%,B%,P%,x%,y%,X%,Y%::P%=fish_area%
�2� A%=0 � fish_n%:F$="f"+�(!(fishes%+A%*32+24))
�7X%=!(fishes%+A%*32):Y%=!(fishes%+A%*32+4):x%=0:y%=0
�Bș "OS_SpriteOp",308,P%,F$,X%,Y%,8,fish_s%,!(fishes%+A%*32+28)
�X%+=!(fishes%+A%*32+8)
�5� X%<=0 � X%>=(max_x%-!(fishes%+A%*32+16)) � x%=�
� B%=0 � fish_n%
�  � A%<>B% � x%=x% � �fish_over(X%,Y%,!(fishes%+A%*32+16),!(fishes%+A%*32+20),!(fishes%+B%*32),!(fishes%+B%*32+4),!(fishes%+B%*32+16),!(fishes%+B%*32+20))
�
&c� x% � X%-=!(fishes%+A%*32+8):!(fishes%+A%*32+8)=-!(fishes%+A%*32+8):ș "OS_SpriteOp",303,P%,F$
0Y%+=!(fishes%+A%*32+12)
:5� Y%<=0 � Y%>=(max_y%-!(fishes%+A%*32+20)) � y%=�
D� B%=0 � fish_n%
N�  � A%<>B% � y%=y% � �fish_over(X%,Y%,!(fishes%+A%*32+16),!(fishes%+A%*32+20),!(fishes%+B%*32),!(fishes%+B%*32+4),!(fishes%+B%*32+16),!(fishes%+B%*32+20))
X�
bK� y% � Y%-=!(fishes%+A%*32+12):!(fishes%+A%*32+12)=-!(fishes%+A%*32+12)
l-!(fishes%+A%*32)=X%:!(fishes%+A%*32+4)=Y%
v�:� now_going%>12000 � =�
�=0
�
�ݤfish_stop
�� A%
�$�free(fish_area%):�free(fish_s%)
�=� fishes% �:� A%=0 � fish_n%:�free(!(fishes%+A%*32+28)):�
��free(fishes%)
��
�=0
�
�
00000000  0d 00 0a 05 f4 0d 00 14  28 f4 20 20 59 61 73 73  |........(.  Yass|
00000010  20 32 20 53 63 72 65 65  6e 20 53 61 76 65 72 20  | 2 Screen Saver |
00000020  4d 6f 64 75 6c 65 20 3a  20 46 69 73 68 0d 00 1e  |Module : Fish...|
00000030  05 f4 0d 00 28 23 f4 20  20 a9 20 63 6f 70 79 72  |....(#.  . copyr|
00000040  69 67 68 74 20 49 61 6e  20 50 61 6c 6d 65 72 2c  |ight Ian Palmer,|
00000050  20 31 39 39 33 0d 00 32  05 f4 0d 00 3c 04 0d 00  | 1993..2....<...|
00000060  46 28 dd a4 66 69 73 68  5f 6f 76 65 72 28 58 25  |F(..fish_over(X%|
00000070  2c 59 25 2c 57 25 2c 48  25 2c 78 25 2c 79 25 2c  |,Y%,W%,H%,x%,y%,|
00000080  77 25 2c 68 25 29 0d 00  5a 1d e7 20 58 25 3c 78  |w%,h%)..Z.. X%<x|
00000090  25 20 80 20 28 58 25 2b  57 25 29 3c 78 25 20 8c  |% . (X%+W%)<x% .|
000000a0  20 3d a3 0d 00 64 27 e7  20 58 25 3e 28 78 25 2b  | =...d'. X%>(x%+|
000000b0  77 25 29 20 80 20 28 58  25 2b 57 25 29 3e 28 78  |w%) . (X%+W%)>(x|
000000c0  25 2b 77 25 29 20 8c 20  3d a3 0d 00 6e 1d e7 20  |%+w%) . =...n.. |
000000d0  59 25 3c 79 25 20 80 20  28 59 25 2b 48 25 29 3c  |Y%<y% . (Y%+H%)<|
000000e0  79 25 20 8c 20 3d a3 0d  00 78 27 e7 20 59 25 3e  |y% . =...x'. Y%>|
000000f0  28 79 25 2b 68 25 29 20  80 20 28 59 25 2b 48 25  |(y%+h%) . (Y%+H%|
00000100  29 3e 28 79 25 2b 68 25  29 20 8c 20 3d a3 0d 00  |)>(y%+h%) . =...|
00000110  82 06 3d b9 0d 00 8c 04  0d 00 96 10 dd a4 66 69  |..=...........fi|
00000120  73 68 5f 73 74 61 72 74  0d 00 a0 27 ea 20 46 24  |sh_start...'. F$|
00000130  2c 4c 25 2c 41 25 2c 42  25 2c 50 25 2c 58 25 2c  |,L%,A%,B%,P%,X%,|
00000140  59 25 2c 5a 25 3a 66 69  73 68 5f 6e 25 3d 33 0d  |Y%,Z%:fish_n%=3.|
00000150  00 a1 0f e7 20 eb 3d 32  32 20 8c 20 3d b9 0d 00  |.... .=22 . =...|
00000160  aa 40 46 24 3d 22 3c 59  61 73 73 32 24 44 69 72  |.@F$="<Yass2$Dir|
00000170  3e 2e 52 65 73 6f 75 72  63 65 73 2e 46 69 73 68  |>.Resources.Fish|
00000180  22 3a c8 99 20 22 4f 53  5f 46 69 6c 65 22 2c 35  |":.. "OS_File",5|
00000190  2c 46 24 20 b8 20 41 25  2c 2c 2c 2c 4c 25 0d 00  |,F$ . A%,,,,L%..|
000001a0  b4 10 e7 20 41 25 3c 3e  31 20 8c 20 3d b9 0d 00  |... A%<>1 . =...|
000001b0  be 30 66 69 73 68 5f 61  72 65 61 25 3d a4 6d 61  |.0fish_area%=.ma|
000001c0  6c 6c 6f 63 28 4c 25 2b  34 29 3a 66 69 73 68 5f  |lloc(L%+4):fish_|
000001d0  73 25 3d a4 6d 61 6c 6c  6f 63 28 31 36 29 0d 00  |s%=.malloc(16)..|
000001e0  c8 31 66 69 73 68 65 73  25 3d a4 6d 61 6c 6c 6f  |.1fishes%=.mallo|
000001f0  63 28 33 32 2a 28 66 69  73 68 5f 6e 25 2b 31 29  |c(32*(fish_n%+1)|
00000200  29 3a 50 25 3d 66 69 73  68 5f 61 72 65 61 25 0d  |):P%=fish_area%.|
00000210  00 d2 22 e7 20 66 69 73  68 65 73 25 3d 30 20 8c  |..". fishes%=0 .|
00000220  20 41 25 3d a4 66 69 73  68 5f 73 74 6f 70 3a 3d  | A%=.fish_stop:=|
00000230  b9 0d 00 dc 2c 21 66 69  73 68 5f 61 72 65 61 25  |....,!fish_area%|
00000240  3d 4c 25 2b 34 3a c8 99  20 22 4f 53 5f 53 70 72  |=L%+4:.. "OS_Spr|
00000250  69 74 65 4f 70 22 2c 32  36 35 2c 50 25 0d 00 e6  |iteOp",265,P%...|
00000260  1e c8 99 20 22 4f 53 5f  53 70 72 69 74 65 4f 70  |... "OS_SpriteOp|
00000270  22 2c 32 36 36 2c 50 25  2c 46 24 0d 00 f0 29 c8  |",266,P%,F$...).|
00000280  99 20 26 33 35 2c 2d 31  2c 34 20 b8 20 2c 2c 58  |. &35,-1,4 . ,,X|
00000290  25 3a c8 99 20 26 33 35  2c 2d 31 2c 35 20 b8 20  |%:.. &35,-1,5 . |
000002a0  2c 2c 59 25 0d 00 fa 35  21 66 69 73 68 5f 73 25  |,,Y%...5!fish_s%|
000002b0  3d 31 3a 66 69 73 68 5f  73 25 21 34 3d 58 25 3a  |=1:fish_s%!4=X%:|
000002c0  66 69 73 68 5f 73 25 21  38 3d 31 3a 66 69 73 68  |fish_s%!8=1:fish|
000002d0  5f 73 25 21 31 32 3d 59  25 0d 01 04 2c e3 20 41  |_s%!12=Y%...,. A|
000002e0  25 3d 30 20 b8 20 66 69  73 68 5f 6e 25 3a 21 28  |%=0 . fish_n%:!(|
000002f0  66 69 73 68 65 73 25 2b  41 25 2a 33 32 2b 32 38  |fishes%+A%*32+28|
00000300  29 3d 30 3a ed 0d 01 0e  4b e3 20 41 25 3d 30 20  |)=0:....K. A%=0 |
00000310  b8 20 66 69 73 68 5f 6e  25 3a 21 28 66 69 73 68  |. fish_n%:!(fish|
00000320  65 73 25 2b 41 25 2a 33  32 2b 32 34 29 3d 41 25  |es%+A%*32+24)=A%|
00000330  2b 31 3a 46 24 3d 22 66  22 2b c3 28 21 28 66 69  |+1:F$="f"+.(!(fi|
00000340  73 68 65 73 25 2b 41 25  2a 33 32 2b 32 34 29 29  |shes%+A%*32+24))|
00000350  0d 01 18 4b c8 99 20 22  4f 53 5f 53 70 72 69 74  |...K.. "OS_Sprit|
00000360  65 4f 70 22 2c 32 39 36  2c 50 25 2c 46 24 20 b8  |eOp",296,P%,F$ .|
00000370  20 2c 2c 2c 21 28 66 69  73 68 65 73 25 2b 41 25  | ,,,!(fishes%+A%|
00000380  2a 33 32 2b 31 36 29 2c  21 28 66 69 73 68 65 73  |*32+16),!(fishes|
00000390  25 2b 41 25 2a 33 32 2b  32 30 29 0d 01 22 30 21  |%+A%*32+20).."0!|
000003a0  28 66 69 73 68 65 73 25  2b 41 25 2a 33 32 2b 31  |(fishes%+A%*32+1|
000003b0  36 29 3d 21 28 66 69 73  68 65 73 25 2b 41 25 2a  |6)=!(fishes%+A%*|
000003c0  33 32 2b 31 36 29 20 3c  3c 20 31 0d 01 2c 30 21  |32+16) << 1..,0!|
000003d0  28 66 69 73 68 65 73 25  2b 41 25 2a 33 32 2b 32  |(fishes%+A%*32+2|
000003e0  30 29 3d 21 28 66 69 73  68 65 73 25 2b 41 25 2a  |0)=!(fishes%+A%*|
000003f0  33 32 2b 32 30 29 20 3c  3c 20 31 0d 01 36 05 f5  |32+20) << 1..6..|
00000400  0d 01 40 34 20 20 21 28  66 69 73 68 65 73 25 2b  |..@4  !(fishes%+|
00000410  41 25 2a 33 32 29 3d b3  28 6d 61 78 5f 78 25 2d  |A%*32)=.(max_x%-|
00000420  21 28 66 69 73 68 65 73  25 2b 41 25 2a 33 32 2b  |!(fishes%+A%*32+|
00000430  31 36 29 29 0d 01 4a 3b  20 20 21 28 66 69 73 68  |16))..J;  !(fish|
00000440  65 73 25 2b 41 25 2a 33  32 2b 34 29 3d b3 28 6d  |es%+A%*32+4)=.(m|
00000450  61 78 5f 79 25 2d 21 28  66 69 73 68 65 73 25 2b  |ax_y%-!(fishes%+|
00000460  41 25 2a 33 32 2b 32 30  29 29 3a 5a 25 3d 30 0d  |A%*32+20)):Z%=0.|
00000470  01 54 11 20 20 e3 20 42  25 3d 30 20 b8 20 41 25  |.T.  . B%=0 . A%|
00000480  0d 01 5e be 20 20 20 20  e7 20 42 25 3c 3e 41 25  |..^.    . B%<>A%|
00000490  20 8c 20 5a 25 3d 5a 25  20 84 20 a4 66 69 73 68  | . Z%=Z% . .fish|
000004a0  5f 6f 76 65 72 28 21 28  66 69 73 68 65 73 25 2b  |_over(!(fishes%+|
000004b0  41 25 2a 33 32 29 2c 21  28 66 69 73 68 65 73 25  |A%*32),!(fishes%|
000004c0  2b 41 25 2a 33 32 2b 34  29 2c 21 28 66 69 73 68  |+A%*32+4),!(fish|
000004d0  65 73 25 2b 41 25 2a 33  32 2b 31 36 29 2c 21 28  |es%+A%*32+16),!(|
000004e0  66 69 73 68 65 73 25 2b  41 25 2a 33 32 2b 32 30  |fishes%+A%*32+20|
000004f0  29 2c 21 28 66 69 73 68  65 73 25 2b 42 25 2a 33  |),!(fishes%+B%*3|
00000500  32 29 2c 21 28 66 69 73  68 65 73 25 2b 42 25 2a  |2),!(fishes%+B%*|
00000510  33 32 2b 34 29 2c 21 28  66 69 73 68 65 73 25 2b  |32+4),!(fishes%+|
00000520  42 25 2a 33 32 2b 31 36  29 2c 21 28 66 69 73 68  |B%*32+16),!(fish|
00000530  65 73 25 2b 42 25 2a 33  32 2b 32 30 29 29 0d 01  |es%+B%*32+20))..|
00000540  68 07 20 20 ed 0d 01 72  0a fd 20 5a 25 3d 30 0d  |h.  ...r.. Z%=0.|
00000550  01 7c 36 21 28 66 69 73  68 65 73 25 2b 41 25 2a  |.|6!(fishes%+A%*|
00000560  33 32 2b 38 29 3d b3 28  36 29 3a 21 28 66 69 73  |32+8)=.(6):!(fis|
00000570  68 65 73 25 2b 41 25 2a  33 32 2b 31 32 29 3d b3  |hes%+A%*32+12)=.|
00000580  28 39 29 2d 35 0d 01 86  76 c8 99 20 22 43 6f 6c  |(9)-5...v.. "Col|
00000590  6f 75 72 54 72 61 6e 73  5f 53 65 6c 65 63 74 54  |ourTrans_SelectT|
000005a0  61 62 6c 65 22 2c 50 25  2c 46 24 2c 2d 31 2c 2d  |able",P%,F$,-1,-|
000005b0  31 2c 30 2c 32 20 b8 20  2c 2c 2c 2c 42 25 3a 4c  |1,0,2 . ,,,,B%:L|
000005c0  25 3d a4 6d 61 6c 6c 6f  63 28 42 25 29 3a c8 99  |%=.malloc(B%):..|
000005d0  20 22 43 6f 6c 6f 75 72  54 72 61 6e 73 5f 53 65  | "ColourTrans_Se|
000005e0  6c 65 63 74 54 61 62 6c  65 22 2c 50 25 2c 46 24  |lectTable",P%,F$|
000005f0  2c 2d 31 2c 2d 31 2c 4c  25 2c 32 0d 01 90 1a 21  |,-1,-1,L%,2....!|
00000600  28 66 69 73 68 65 73 25  2b 41 25 2a 33 32 2b 32  |(fishes%+A%*32+2|
00000610  38 29 3d 4c 25 0d 01 9a  1f ed 3a e7 20 4c 25 3d  |8)=L%.....:. L%=|
00000620  30 20 8c 20 41 25 3d a4  66 69 73 68 5f 73 74 6f  |0 . A%=.fish_sto|
00000630  70 3a 3d b9 0d 01 a4 14  f2 63 6c 65 61 72 73 63  |p:=......clearsc|
00000640  72 65 65 6e 28 2d 31 29  0d 01 ae 06 3d 30 0d 01  |reen(-1)....=0..|
00000650  b8 04 0d 01 c2 0f dd a4  66 69 73 68 5f 70 6f 6c  |........fish_pol|
00000660  6c 0d 01 cc 2c ea 20 46  24 2c 41 25 2c 42 25 2c  |l...,. F$,A%,B%,|
00000670  50 25 2c 78 25 2c 79 25  2c 58 25 2c 59 25 3a 3a  |P%,x%,y%,X%,Y%::|
00000680  50 25 3d 66 69 73 68 5f  61 72 65 61 25 0d 01 d6  |P%=fish_area%...|
00000690  32 e3 20 41 25 3d 30 20  b8 20 66 69 73 68 5f 6e  |2. A%=0 . fish_n|
000006a0  25 3a 46 24 3d 22 66 22  2b c3 28 21 28 66 69 73  |%:F$="f"+.(!(fis|
000006b0  68 65 73 25 2b 41 25 2a  33 32 2b 32 34 29 29 0d  |hes%+A%*32+24)).|
000006c0  01 e0 37 58 25 3d 21 28  66 69 73 68 65 73 25 2b  |..7X%=!(fishes%+|
000006d0  41 25 2a 33 32 29 3a 59  25 3d 21 28 66 69 73 68  |A%*32):Y%=!(fish|
000006e0  65 73 25 2b 41 25 2a 33  32 2b 34 29 3a 78 25 3d  |es%+A%*32+4):x%=|
000006f0  30 3a 79 25 3d 30 0d 01  ea 42 c8 99 20 22 4f 53  |0:y%=0...B.. "OS|
00000700  5f 53 70 72 69 74 65 4f  70 22 2c 33 30 38 2c 50  |_SpriteOp",308,P|
00000710  25 2c 46 24 2c 58 25 2c  59 25 2c 38 2c 66 69 73  |%,F$,X%,Y%,8,fis|
00000720  68 5f 73 25 2c 21 28 66  69 73 68 65 73 25 2b 41  |h_s%,!(fishes%+A|
00000730  25 2a 33 32 2b 32 38 29  0d 01 f4 1a 58 25 2b 3d  |%*32+28)....X%+=|
00000740  21 28 66 69 73 68 65 73  25 2b 41 25 2a 33 32 2b  |!(fishes%+A%*32+|
00000750  38 29 0d 01 fe 35 e7 20  58 25 3c 3d 30 20 84 20  |8)...5. X%<=0 . |
00000760  58 25 3e 3d 28 6d 61 78  5f 78 25 2d 21 28 66 69  |X%>=(max_x%-!(fi|
00000770  73 68 65 73 25 2b 41 25  2a 33 32 2b 31 36 29 29  |shes%+A%*32+16))|
00000780  20 8c 20 78 25 3d b9 0d  02 08 14 e3 20 42 25 3d  | . x%=...... B%=|
00000790  30 20 b8 20 66 69 73 68  5f 6e 25 0d 02 12 9e 20  |0 . fish_n%.... |
000007a0  20 e7 20 41 25 3c 3e 42  25 20 8c 20 78 25 3d 78  | . A%<>B% . x%=x|
000007b0  25 20 84 20 a4 66 69 73  68 5f 6f 76 65 72 28 58  |% . .fish_over(X|
000007c0  25 2c 59 25 2c 21 28 66  69 73 68 65 73 25 2b 41  |%,Y%,!(fishes%+A|
000007d0  25 2a 33 32 2b 31 36 29  2c 21 28 66 69 73 68 65  |%*32+16),!(fishe|
000007e0  73 25 2b 41 25 2a 33 32  2b 32 30 29 2c 21 28 66  |s%+A%*32+20),!(f|
000007f0  69 73 68 65 73 25 2b 42  25 2a 33 32 29 2c 21 28  |ishes%+B%*32),!(|
00000800  66 69 73 68 65 73 25 2b  42 25 2a 33 32 2b 34 29  |fishes%+B%*32+4)|
00000810  2c 21 28 66 69 73 68 65  73 25 2b 42 25 2a 33 32  |,!(fishes%+B%*32|
00000820  2b 31 36 29 2c 21 28 66  69 73 68 65 73 25 2b 42  |+16),!(fishes%+B|
00000830  25 2a 33 32 2b 32 30 29  29 0d 02 1c 05 ed 0d 02  |%*32+20)).......|
00000840  26 63 e7 20 78 25 20 8c  20 58 25 2d 3d 21 28 66  |&c. x% . X%-=!(f|
00000850  69 73 68 65 73 25 2b 41  25 2a 33 32 2b 38 29 3a  |ishes%+A%*32+8):|
00000860  21 28 66 69 73 68 65 73  25 2b 41 25 2a 33 32 2b  |!(fishes%+A%*32+|
00000870  38 29 3d 2d 21 28 66 69  73 68 65 73 25 2b 41 25  |8)=-!(fishes%+A%|
00000880  2a 33 32 2b 38 29 3a c8  99 20 22 4f 53 5f 53 70  |*32+8):.. "OS_Sp|
00000890  72 69 74 65 4f 70 22 2c  33 30 33 2c 50 25 2c 46  |riteOp",303,P%,F|
000008a0  24 0d 02 30 1b 59 25 2b  3d 21 28 66 69 73 68 65  |$..0.Y%+=!(fishe|
000008b0  73 25 2b 41 25 2a 33 32  2b 31 32 29 0d 02 3a 35  |s%+A%*32+12)..:5|
000008c0  e7 20 59 25 3c 3d 30 20  84 20 59 25 3e 3d 28 6d  |. Y%<=0 . Y%>=(m|
000008d0  61 78 5f 79 25 2d 21 28  66 69 73 68 65 73 25 2b  |ax_y%-!(fishes%+|
000008e0  41 25 2a 33 32 2b 32 30  29 29 20 8c 20 79 25 3d  |A%*32+20)) . y%=|
000008f0  b9 0d 02 44 14 e3 20 42  25 3d 30 20 b8 20 66 69  |...D.. B%=0 . fi|
00000900  73 68 5f 6e 25 0d 02 4e  9e 20 20 e7 20 41 25 3c  |sh_n%..N.  . A%<|
00000910  3e 42 25 20 8c 20 79 25  3d 79 25 20 84 20 a4 66  |>B% . y%=y% . .f|
00000920  69 73 68 5f 6f 76 65 72  28 58 25 2c 59 25 2c 21  |ish_over(X%,Y%,!|
00000930  28 66 69 73 68 65 73 25  2b 41 25 2a 33 32 2b 31  |(fishes%+A%*32+1|
00000940  36 29 2c 21 28 66 69 73  68 65 73 25 2b 41 25 2a  |6),!(fishes%+A%*|
00000950  33 32 2b 32 30 29 2c 21  28 66 69 73 68 65 73 25  |32+20),!(fishes%|
00000960  2b 42 25 2a 33 32 29 2c  21 28 66 69 73 68 65 73  |+B%*32),!(fishes|
00000970  25 2b 42 25 2a 33 32 2b  34 29 2c 21 28 66 69 73  |%+B%*32+4),!(fis|
00000980  68 65 73 25 2b 42 25 2a  33 32 2b 31 36 29 2c 21  |hes%+B%*32+16),!|
00000990  28 66 69 73 68 65 73 25  2b 42 25 2a 33 32 2b 32  |(fishes%+B%*32+2|
000009a0  30 29 29 0d 02 58 05 ed  0d 02 62 4b e7 20 79 25  |0))..X....bK. y%|
000009b0  20 8c 20 59 25 2d 3d 21  28 66 69 73 68 65 73 25  | . Y%-=!(fishes%|
000009c0  2b 41 25 2a 33 32 2b 31  32 29 3a 21 28 66 69 73  |+A%*32+12):!(fis|
000009d0  68 65 73 25 2b 41 25 2a  33 32 2b 31 32 29 3d 2d  |hes%+A%*32+12)=-|
000009e0  21 28 66 69 73 68 65 73  25 2b 41 25 2a 33 32 2b  |!(fishes%+A%*32+|
000009f0  31 32 29 0d 02 6c 2d 21  28 66 69 73 68 65 73 25  |12)..l-!(fishes%|
00000a00  2b 41 25 2a 33 32 29 3d  58 25 3a 21 28 66 69 73  |+A%*32)=X%:!(fis|
00000a10  68 65 73 25 2b 41 25 2a  33 32 2b 34 29 3d 59 25  |hes%+A%*32+4)=Y%|
00000a20  0d 02 76 1d ed 3a e7 20  6e 6f 77 5f 67 6f 69 6e  |..v..:. now_goin|
00000a30  67 25 3e 31 32 30 30 30  20 8c 20 3d b9 0d 02 80  |g%>12000 . =....|
00000a40  06 3d 30 0d 02 8a 04 0d  02 94 0f dd a4 66 69 73  |.=0..........fis|
00000a50  68 5f 73 74 6f 70 0d 02  9e 08 ea 20 41 25 0d 02  |h_stop..... A%..|
00000a60  a8 24 f2 66 72 65 65 28  66 69 73 68 5f 61 72 65  |.$.free(fish_are|
00000a70  61 25 29 3a f2 66 72 65  65 28 66 69 73 68 5f 73  |a%):.free(fish_s|
00000a80  25 29 0d 02 b2 3d e7 20  66 69 73 68 65 73 25 20  |%)...=. fishes% |
00000a90  8c 3a e3 20 41 25 3d 30  20 b8 20 66 69 73 68 5f  |.:. A%=0 . fish_|
00000aa0  6e 25 3a f2 66 72 65 65  28 21 28 66 69 73 68 65  |n%:.free(!(fishe|
00000ab0  73 25 2b 41 25 2a 33 32  2b 32 38 29 29 3a ed 0d  |s%+A%*32+28)):..|
00000ac0  02 bc 12 f2 66 72 65 65  28 66 69 73 68 65 73 25  |....free(fishes%|
00000ad0  29 0d 02 c6 05 cd 0d 02  d0 06 3d 30 0d 02 da 04  |).........=0....|
00000ae0  0d ff                                             |..|
00000ae2