Home » Personal collection » Acorn hard disk » demos » Demo » Sillies/!Babyblack/!RunImage

Sillies/!Babyblack/!RunImage

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 » Personal collection » Acorn hard disk » demos » Demo
Filename: Sillies/!Babyblack/!RunImage
Read OK:
File size: 0B0E bytes
Load address: 0000
Exec address: 0000
Duplicates

There are 3 duplicate copies of this file in the archive:

File contents
   10REM ><BabyBlues$Dir>.!RunImage
   20REM Baby blue eyes
   30REM Natasha K (29-Jan-1990)
   40
   50REM Heavily modified version of PD !Follow
   60REM Thanks to everyone who wrote this in the first place (Joe Pinapples,
   70REM Tony Cheal, & Sean & Mulrine), and especially TC for the mode
   80REM independance bit.
   90
  100REM P.S. If walruses had blue eyes I wouldn't have had to either!
  110
  120REM What kind of a name is Follow? - Where's your sense of romance?
  130
  140PROCinit
  150ON ERROR PROCerror
  160REPEAT
  170 SYS"Wimp_Poll",mask%,B% TO R%
  180 CASE R% OF
  190  WHEN 0:PROCdo_eyes
  200  WHEN 1:PROCdo_wind
  210  WHEN 2:SYS"Wimp_OpenWindow",,B%
  220  WHEN 3:SYS"Wimp_CloseWindow",,B%:bored%=TRUE
  230  WHEN 6:IFB%!8=2 SYS"Wimp_CreateMenu",,menu%,B%!0-64,B%!4
  240  WHEN 9:IFB%!0=1 bored%=TRUE
  250  WHEN 17,18:IFB%!16=0 bored%=TRUE
  260 ENDCASE
  270UNTILbored%
  280SYS"Wimp_CloseDown":END
  290
  300DEFPROCinit
  310SYS"Wimp_Initialise",200,&4B534154,"Baby Blues" TO ,ourtask%
  320ch%=OPENUP"<BabyBlues$Dir>.Sprites":L%=EXT#ch%:CLOSE#ch%:L%+=16
  330DIM sp% L%,B% 1024,sp% &400,ptr% 30,scale% 16,trans% 16,menu% 80,icn% 256
  340sp%!0=L%:sp%!4=0:sp%!8=16:sp%!12=16
  350SYS"OS_SpriteOp",&10A,sp%,"<BabyBlues$Dir>.Sprites"
  360OSCLI("Load <BabyBlues$Dir>.Menus "+STR$~menu%)
  370SYS"Wimp_OpenTemplate",,"<BabyBlues$Dir>.Templates"
  380SYS"Wimp_LoadTemplate",,B%,icn%,icn%+256,-1,"info",0 TO ,,next
  390SYS"Wimp_CreateWindow",,B% TO info%
  400SYS"Wimp_LoadTemplate",,B%,next,icn%+256,-1,"eyes",0 TO ,,next
  410SYS"Wimp_CreateWindow",,B% TO eyes%
  420SYS"Wimp_CloseTemplate"
  430!B%=eyes%:SYS"Wimp_GetWindowState",,B%:B%!28=-1:SYS"Wimp_OpenWindow",,B%
  440ex%=0:ey%=0:fx%=0:fy%=0:bored%=FALSE:mask%=&D30:menu%!32=info%:ENDPROC
  450
  460DEFPROCdo_eyes
  470LOCAL x%,ang:gx%=ex%:gy%=ey%:hx%=fx%:hy%=fy%
  480SYS"Wimp_GetPointerInfo",,ptr%:px%=ptr%!0:py%=ptr%!4
  490!B%=eyes%:SYS"Wimp_GetWindowState",,B%:wx%=B%!4:wy%=B%!8
  500FORx%=0TO1
  510 ox%=px%-wx%-(116+40*x%):oy%=py%-wy%-30
  520 IF (oy%*oy%+ox%*ox%)>12*12 AND ox%<>0 THEN
  530  ang=ATN(oy%/ox%):IF ox%<0 ang+=PI
  540  ox%=12*COS(ang):oy%=12*SIN(ang)
  550 ENDIF
  560 IF ox%=0 THEN
  570  IF oy%>12 oy%=12
  580  IF oy%<-12 oy%=-12
  590 ENDIF
  600 IF x%=0 ex%=ox%:ey%=oy%
  610 IF x%=1 fx%=ox%:fy%=oy%
  620NEXT
  630IF ex%<>gx% OR fx%<>hx% OR ey%<>gy% OR fy%<>hy% THEN
  640 !B%=eyes%:B%!4=42:B%!8=-64:B%!12=218:B%!16=4
  650 SYS"Wimp_UpdateWindow",,B% TO more%
  660  WHILE more%:PROCeyes:SYS"Wimp_GetRectangle",,B% TO more%:ENDWHILE
  670ENDIF:ENDPROC
  680
  690DEFPROCdo_wind
  700LOCALmore%:SYS"Wimp_GetWindowState",,B%:wx%=B%!4:wy%=B%!8
  710SYS"Wimp_RedrawWindow",,B% TO more%
  720WHILE more%
  730 PROCeyes:SYS"Wimp_GetRectangle",,B% TO more%
  740ENDWHILE:ENDPROC
  750
  760DEFPROCeyes
  770SYS"Wimp_ReadPixTrans",&100,sp%,"socket",,,,scale%,trans%
  780SYS"OS_SpriteOp",&134,sp%,"socket",92+wx%,wy%,8,scale%,trans%
  790SYS"OS_SpriteOp",&134,sp%,"eye",106+ex%+wx%,24+ey%+wy%,8,scale%,trans%
  800SYS"OS_SpriteOp",&134,sp%,"eye",140+fx%+wx%,24+fy%+wy%,8,scale%,trans%
  810ENDPROC
  820
  830DEFPROCerror
  840$(B%+4)=REPORT$+": Internal error code "+STR$ERL+" (Cancel to quit)"
  850SYS"Wimp_ReportError",B%,3,"BabyBlues" TO ,b
  860IFb=1 ENDPROC ELSE SYS"Wimp_CloseDown":END

 � ><BabyBlues$Dir>.!RunImage
� Baby blue eyes
� Natasha K (29-Jan-1990)
(
2,� Heavily modified version of PD !Follow
<J� Thanks to everyone who wrote this in the first place (Joe Pinapples,
FC� Tony Cheal, & Sean & Mulrine), and especially TC for the mode
P� independance bit.
Z
dC� P.S. If walruses had blue eyes I wouldn't have had to either!
n
xE� What kind of a name is Follow? - Where's your sense of romance?
�
�	�init
�� � �error
��
�  ș"Wimp_Poll",mask%,B% � R%
� Ȏ R% �
�  � 0:�do_eyes
�  � 1:�do_wind
�!  � 2:ș"Wimp_OpenWindow",,B%
�+  � 3:ș"Wimp_CloseWindow",,B%:bored%=�
�9  � 6:�B%!8=2 ș"Wimp_CreateMenu",,menu%,B%!0-64,B%!4
�  � 9:�B%!0=1 bored%=�
�  � 17,18:�B%!16=0 bored%=�
 �
�bored%
ș"Wimp_CloseDown":�
"
,
��init
6>ș"Wimp_Initialise",200,&4B534154,"Baby Blues" � ,ourtask%
@8ch%=�"<BabyBlues$Dir>.Sprites":L%=�#ch%:�#ch%:L%+=16
JK� sp% L%,B% 1024,sp% &400,ptr% 30,scale% 16,trans% 16,menu% 80,icn% 256
T'sp%!0=L%:sp%!4=0:sp%!8=16:sp%!12=16
^6ș"OS_SpriteOp",&10A,sp%,"<BabyBlues$Dir>.Sprites"
h,�("Load <BabyBlues$Dir>.Menus "+�~menu%)
r6ș"Wimp_OpenTemplate",,"<BabyBlues$Dir>.Templates"
|@ș"Wimp_LoadTemplate",,B%,icn%,icn%+256,-1,"info",0 � ,,next
�%ș"Wimp_CreateWindow",,B% � info%
�@ș"Wimp_LoadTemplate",,B%,next,icn%+256,-1,"eyes",0 � ,,next
�%ș"Wimp_CreateWindow",,B% � eyes%
�ș"Wimp_CloseTemplate"
�J!B%=eyes%:ș"Wimp_GetWindowState",,B%:B%!28=-1:ș"Wimp_OpenWindow",,B%
�@ex%=0:ey%=0:fx%=0:fy%=0:bored%=�:mask%=&D30:menu%!32=info%:�
�
�
��do_eyes
�,� x%,ang:gx%=ex%:gy%=ey%:hx%=fx%:hy%=fy%
�7ș"Wimp_GetPointerInfo",,ptr%:px%=ptr%!0:py%=ptr%!4
�;!B%=eyes%:ș"Wimp_GetWindowState",,B%:wx%=B%!4:wy%=B%!8
��x%=0�1
�+ ox%=px%-wx%-(116+40*x%):oy%=py%-wy%-30
) � (oy%*oy%+ox%*ox%)>12*12 � ox%<>0 �
#  ang=�(oy%/ox%):� ox%<0 ang+=�
!  ox%=12*�(ang):oy%=12*�(ang)
& �
0 � ox%=0 �
:  � oy%>12 oy%=12
D  � oy%<-12 oy%=-12
N �
X � x%=0 ex%=ox%:ey%=oy%
b � x%=1 fx%=ox%:fy%=oy%
l�
v1� ex%<>gx% � fx%<>hx% � ey%<>gy% � fy%<>hy% �
�1 !B%=eyes%:B%!4=42:B%!8=-64:B%!12=218:B%!16=4
�& ș"Wimp_UpdateWindow",,B% � more%
�8  ȕ more%:�eyes:ș"Wimp_GetRectangle",,B% � more%:�
��:�
�
�
��do_wind
�8�more%:ș"Wimp_GetWindowState",,B%:wx%=B%!4:wy%=B%!8
�%ș"Wimp_RedrawWindow",,B% � more%
�ȕ more%
�, �eyes:ș"Wimp_GetRectangle",,B% � more%
��:�
�
�
��eyes
<ș"Wimp_ReadPixTrans",&100,sp%,"socket",,,,scale%,trans%
@ș"OS_SpriteOp",&134,sp%,"socket",92+wx%,wy%,8,scale%,trans%
Iș"OS_SpriteOp",&134,sp%,"eye",106+ex%+wx%,24+ey%+wy%,8,scale%,trans%
 Iș"OS_SpriteOp",&134,sp%,"eye",140+fx%+wx%,24+fy%+wy%,8,scale%,trans%
*�
4
>��error
H>$(B%+4)=�$+": Internal error code "+Þ+" (Cancel to quit)"
R.ș"Wimp_ReportError",B%,3,"BabyBlues" � ,b
\!�b=1 � � ș"Wimp_CloseDown":�
�
00000000  0d 00 0a 20 f4 20 3e 3c  42 61 62 79 42 6c 75 65  |... . ><BabyBlue|
00000010  73 24 44 69 72 3e 2e 21  52 75 6e 49 6d 61 67 65  |s$Dir>.!RunImage|
00000020  0d 00 14 14 f4 20 42 61  62 79 20 62 6c 75 65 20  |..... Baby blue |
00000030  65 79 65 73 0d 00 1e 1d  f4 20 4e 61 74 61 73 68  |eyes..... Natash|
00000040  61 20 4b 20 28 32 39 2d  4a 61 6e 2d 31 39 39 30  |a K (29-Jan-1990|
00000050  29 0d 00 28 04 0d 00 32  2c f4 20 48 65 61 76 69  |)..(...2,. Heavi|
00000060  6c 79 20 6d 6f 64 69 66  69 65 64 20 76 65 72 73  |ly modified vers|
00000070  69 6f 6e 20 6f 66 20 50  44 20 21 46 6f 6c 6c 6f  |ion of PD !Follo|
00000080  77 0d 00 3c 4a f4 20 54  68 61 6e 6b 73 20 74 6f  |w..<J. Thanks to|
00000090  20 65 76 65 72 79 6f 6e  65 20 77 68 6f 20 77 72  | everyone who wr|
000000a0  6f 74 65 20 74 68 69 73  20 69 6e 20 74 68 65 20  |ote this in the |
000000b0  66 69 72 73 74 20 70 6c  61 63 65 20 28 4a 6f 65  |first place (Joe|
000000c0  20 50 69 6e 61 70 70 6c  65 73 2c 0d 00 46 43 f4  | Pinapples,..FC.|
000000d0  20 54 6f 6e 79 20 43 68  65 61 6c 2c 20 26 20 53  | Tony Cheal, & S|
000000e0  65 61 6e 20 26 20 4d 75  6c 72 69 6e 65 29 2c 20  |ean & Mulrine), |
000000f0  61 6e 64 20 65 73 70 65  63 69 61 6c 6c 79 20 54  |and especially T|
00000100  43 20 66 6f 72 20 74 68  65 20 6d 6f 64 65 0d 00  |C for the mode..|
00000110  50 17 f4 20 69 6e 64 65  70 65 6e 64 61 6e 63 65  |P.. independance|
00000120  20 62 69 74 2e 0d 00 5a  04 0d 00 64 43 f4 20 50  | bit...Z...dC. P|
00000130  2e 53 2e 20 49 66 20 77  61 6c 72 75 73 65 73 20  |.S. If walruses |
00000140  68 61 64 20 62 6c 75 65  20 65 79 65 73 20 49 20  |had blue eyes I |
00000150  77 6f 75 6c 64 6e 27 74  20 68 61 76 65 20 68 61  |wouldn't have ha|
00000160  64 20 74 6f 20 65 69 74  68 65 72 21 0d 00 6e 04  |d to either!..n.|
00000170  0d 00 78 45 f4 20 57 68  61 74 20 6b 69 6e 64 20  |..xE. What kind |
00000180  6f 66 20 61 20 6e 61 6d  65 20 69 73 20 46 6f 6c  |of a name is Fol|
00000190  6c 6f 77 3f 20 2d 20 57  68 65 72 65 27 73 20 79  |low? - Where's y|
000001a0  6f 75 72 20 73 65 6e 73  65 20 6f 66 20 72 6f 6d  |our sense of rom|
000001b0  61 6e 63 65 3f 0d 00 82  04 0d 00 8c 09 f2 69 6e  |ance?.........in|
000001c0  69 74 0d 00 96 0e ee 20  85 20 f2 65 72 72 6f 72  |it..... . .error|
000001d0  0d 00 a0 05 f5 0d 00 aa  20 20 c8 99 22 57 69 6d  |........  .."Wim|
000001e0  70 5f 50 6f 6c 6c 22 2c  6d 61 73 6b 25 2c 42 25  |p_Poll",mask%,B%|
000001f0  20 b8 20 52 25 0d 00 b4  0c 20 c8 8e 20 52 25 20  | . R%.... .. R% |
00000200  ca 0d 00 be 12 20 20 c9  20 30 3a f2 64 6f 5f 65  |.....  . 0:.do_e|
00000210  79 65 73 0d 00 c8 12 20  20 c9 20 31 3a f2 64 6f  |yes....  . 1:.do|
00000220  5f 77 69 6e 64 0d 00 d2  21 20 20 c9 20 32 3a c8  |_wind...!  . 2:.|
00000230  99 22 57 69 6d 70 5f 4f  70 65 6e 57 69 6e 64 6f  |."Wimp_OpenWindo|
00000240  77 22 2c 2c 42 25 0d 00  dc 2b 20 20 c9 20 33 3a  |w",,B%...+  . 3:|
00000250  c8 99 22 57 69 6d 70 5f  43 6c 6f 73 65 57 69 6e  |.."Wimp_CloseWin|
00000260  64 6f 77 22 2c 2c 42 25  3a 62 6f 72 65 64 25 3d  |dow",,B%:bored%=|
00000270  b9 0d 00 e6 39 20 20 c9  20 36 3a e7 42 25 21 38  |....9  . 6:.B%!8|
00000280  3d 32 20 c8 99 22 57 69  6d 70 5f 43 72 65 61 74  |=2 .."Wimp_Creat|
00000290  65 4d 65 6e 75 22 2c 2c  6d 65 6e 75 25 2c 42 25  |eMenu",,menu%,B%|
000002a0  21 30 2d 36 34 2c 42 25  21 34 0d 00 f0 1a 20 20  |!0-64,B%!4....  |
000002b0  c9 20 39 3a e7 42 25 21  30 3d 31 20 62 6f 72 65  |. 9:.B%!0=1 bore|
000002c0  64 25 3d b9 0d 00 fa 1f  20 20 c9 20 31 37 2c 31  |d%=.....  . 17,1|
000002d0  38 3a e7 42 25 21 31 36  3d 30 20 62 6f 72 65 64  |8:.B%!16=0 bored|
000002e0  25 3d b9 0d 01 04 06 20  cb 0d 01 0e 0b fd 62 6f  |%=..... ......bo|
000002f0  72 65 64 25 0d 01 18 18  c8 99 22 57 69 6d 70 5f  |red%......"Wimp_|
00000300  43 6c 6f 73 65 44 6f 77  6e 22 3a e0 0d 01 22 04  |CloseDown":...".|
00000310  0d 01 2c 0a dd f2 69 6e  69 74 0d 01 36 3e c8 99  |..,...init..6>..|
00000320  22 57 69 6d 70 5f 49 6e  69 74 69 61 6c 69 73 65  |"Wimp_Initialise|
00000330  22 2c 32 30 30 2c 26 34  42 35 33 34 31 35 34 2c  |",200,&4B534154,|
00000340  22 42 61 62 79 20 42 6c  75 65 73 22 20 b8 20 2c  |"Baby Blues" . ,|
00000350  6f 75 72 74 61 73 6b 25  0d 01 40 38 63 68 25 3d  |ourtask%..@8ch%=|
00000360  ad 22 3c 42 61 62 79 42  6c 75 65 73 24 44 69 72  |."<BabyBlues$Dir|
00000370  3e 2e 53 70 72 69 74 65  73 22 3a 4c 25 3d a2 23  |>.Sprites":L%=.#|
00000380  63 68 25 3a d9 23 63 68  25 3a 4c 25 2b 3d 31 36  |ch%:.#ch%:L%+=16|
00000390  0d 01 4a 4b de 20 73 70  25 20 4c 25 2c 42 25 20  |..JK. sp% L%,B% |
000003a0  31 30 32 34 2c 73 70 25  20 26 34 30 30 2c 70 74  |1024,sp% &400,pt|
000003b0  72 25 20 33 30 2c 73 63  61 6c 65 25 20 31 36 2c  |r% 30,scale% 16,|
000003c0  74 72 61 6e 73 25 20 31  36 2c 6d 65 6e 75 25 20  |trans% 16,menu% |
000003d0  38 30 2c 69 63 6e 25 20  32 35 36 0d 01 54 27 73  |80,icn% 256..T's|
000003e0  70 25 21 30 3d 4c 25 3a  73 70 25 21 34 3d 30 3a  |p%!0=L%:sp%!4=0:|
000003f0  73 70 25 21 38 3d 31 36  3a 73 70 25 21 31 32 3d  |sp%!8=16:sp%!12=|
00000400  31 36 0d 01 5e 36 c8 99  22 4f 53 5f 53 70 72 69  |16..^6.."OS_Spri|
00000410  74 65 4f 70 22 2c 26 31  30 41 2c 73 70 25 2c 22  |teOp",&10A,sp%,"|
00000420  3c 42 61 62 79 42 6c 75  65 73 24 44 69 72 3e 2e  |<BabyBlues$Dir>.|
00000430  53 70 72 69 74 65 73 22  0d 01 68 2c ff 28 22 4c  |Sprites"..h,.("L|
00000440  6f 61 64 20 3c 42 61 62  79 42 6c 75 65 73 24 44  |oad <BabyBlues$D|
00000450  69 72 3e 2e 4d 65 6e 75  73 20 22 2b c3 7e 6d 65  |ir>.Menus "+.~me|
00000460  6e 75 25 29 0d 01 72 36  c8 99 22 57 69 6d 70 5f  |nu%)..r6.."Wimp_|
00000470  4f 70 65 6e 54 65 6d 70  6c 61 74 65 22 2c 2c 22  |OpenTemplate",,"|
00000480  3c 42 61 62 79 42 6c 75  65 73 24 44 69 72 3e 2e  |<BabyBlues$Dir>.|
00000490  54 65 6d 70 6c 61 74 65  73 22 0d 01 7c 40 c8 99  |Templates"..|@..|
000004a0  22 57 69 6d 70 5f 4c 6f  61 64 54 65 6d 70 6c 61  |"Wimp_LoadTempla|
000004b0  74 65 22 2c 2c 42 25 2c  69 63 6e 25 2c 69 63 6e  |te",,B%,icn%,icn|
000004c0  25 2b 32 35 36 2c 2d 31  2c 22 69 6e 66 6f 22 2c  |%+256,-1,"info",|
000004d0  30 20 b8 20 2c 2c 6e 65  78 74 0d 01 86 25 c8 99  |0 . ,,next...%..|
000004e0  22 57 69 6d 70 5f 43 72  65 61 74 65 57 69 6e 64  |"Wimp_CreateWind|
000004f0  6f 77 22 2c 2c 42 25 20  b8 20 69 6e 66 6f 25 0d  |ow",,B% . info%.|
00000500  01 90 40 c8 99 22 57 69  6d 70 5f 4c 6f 61 64 54  |..@.."Wimp_LoadT|
00000510  65 6d 70 6c 61 74 65 22  2c 2c 42 25 2c 6e 65 78  |emplate",,B%,nex|
00000520  74 2c 69 63 6e 25 2b 32  35 36 2c 2d 31 2c 22 65  |t,icn%+256,-1,"e|
00000530  79 65 73 22 2c 30 20 b8  20 2c 2c 6e 65 78 74 0d  |yes",0 . ,,next.|
00000540  01 9a 25 c8 99 22 57 69  6d 70 5f 43 72 65 61 74  |..%.."Wimp_Creat|
00000550  65 57 69 6e 64 6f 77 22  2c 2c 42 25 20 b8 20 65  |eWindow",,B% . e|
00000560  79 65 73 25 0d 01 a4 1a  c8 99 22 57 69 6d 70 5f  |yes%......"Wimp_|
00000570  43 6c 6f 73 65 54 65 6d  70 6c 61 74 65 22 0d 01  |CloseTemplate"..|
00000580  ae 4a 21 42 25 3d 65 79  65 73 25 3a c8 99 22 57  |.J!B%=eyes%:.."W|
00000590  69 6d 70 5f 47 65 74 57  69 6e 64 6f 77 53 74 61  |imp_GetWindowSta|
000005a0  74 65 22 2c 2c 42 25 3a  42 25 21 32 38 3d 2d 31  |te",,B%:B%!28=-1|
000005b0  3a c8 99 22 57 69 6d 70  5f 4f 70 65 6e 57 69 6e  |:.."Wimp_OpenWin|
000005c0  64 6f 77 22 2c 2c 42 25  0d 01 b8 40 65 78 25 3d  |dow",,B%...@ex%=|
000005d0  30 3a 65 79 25 3d 30 3a  66 78 25 3d 30 3a 66 79  |0:ey%=0:fx%=0:fy|
000005e0  25 3d 30 3a 62 6f 72 65  64 25 3d a3 3a 6d 61 73  |%=0:bored%=.:mas|
000005f0  6b 25 3d 26 44 33 30 3a  6d 65 6e 75 25 21 33 32  |k%=&D30:menu%!32|
00000600  3d 69 6e 66 6f 25 3a e1  0d 01 c2 04 0d 01 cc 0d  |=info%:.........|
00000610  dd f2 64 6f 5f 65 79 65  73 0d 01 d6 2c ea 20 78  |..do_eyes...,. x|
00000620  25 2c 61 6e 67 3a 67 78  25 3d 65 78 25 3a 67 79  |%,ang:gx%=ex%:gy|
00000630  25 3d 65 79 25 3a 68 78  25 3d 66 78 25 3a 68 79  |%=ey%:hx%=fx%:hy|
00000640  25 3d 66 79 25 0d 01 e0  37 c8 99 22 57 69 6d 70  |%=fy%...7.."Wimp|
00000650  5f 47 65 74 50 6f 69 6e  74 65 72 49 6e 66 6f 22  |_GetPointerInfo"|
00000660  2c 2c 70 74 72 25 3a 70  78 25 3d 70 74 72 25 21  |,,ptr%:px%=ptr%!|
00000670  30 3a 70 79 25 3d 70 74  72 25 21 34 0d 01 ea 3b  |0:py%=ptr%!4...;|
00000680  21 42 25 3d 65 79 65 73  25 3a c8 99 22 57 69 6d  |!B%=eyes%:.."Wim|
00000690  70 5f 47 65 74 57 69 6e  64 6f 77 53 74 61 74 65  |p_GetWindowState|
000006a0  22 2c 2c 42 25 3a 77 78  25 3d 42 25 21 34 3a 77  |",,B%:wx%=B%!4:w|
000006b0  79 25 3d 42 25 21 38 0d  01 f4 0b e3 78 25 3d 30  |y%=B%!8.....x%=0|
000006c0  b8 31 0d 01 fe 2b 20 6f  78 25 3d 70 78 25 2d 77  |.1...+ ox%=px%-w|
000006d0  78 25 2d 28 31 31 36 2b  34 30 2a 78 25 29 3a 6f  |x%-(116+40*x%):o|
000006e0  79 25 3d 70 79 25 2d 77  79 25 2d 33 30 0d 02 08  |y%=py%-wy%-30...|
000006f0  29 20 e7 20 28 6f 79 25  2a 6f 79 25 2b 6f 78 25  |) . (oy%*oy%+ox%|
00000700  2a 6f 78 25 29 3e 31 32  2a 31 32 20 80 20 6f 78  |*ox%)>12*12 . ox|
00000710  25 3c 3e 30 20 8c 0d 02  12 23 20 20 61 6e 67 3d  |%<>0 ....#  ang=|
00000720  99 28 6f 79 25 2f 6f 78  25 29 3a e7 20 6f 78 25  |.(oy%/ox%):. ox%|
00000730  3c 30 20 61 6e 67 2b 3d  af 0d 02 1c 21 20 20 6f  |<0 ang+=....!  o|
00000740  78 25 3d 31 32 2a 9b 28  61 6e 67 29 3a 6f 79 25  |x%=12*.(ang):oy%|
00000750  3d 31 32 2a b5 28 61 6e  67 29 0d 02 26 06 20 cd  |=12*.(ang)..&. .|
00000760  0d 02 30 0e 20 e7 20 6f  78 25 3d 30 20 8c 0d 02  |..0. . ox%=0 ...|
00000770  3a 15 20 20 e7 20 6f 79  25 3e 31 32 20 6f 79 25  |:.  . oy%>12 oy%|
00000780  3d 31 32 0d 02 44 17 20  20 e7 20 6f 79 25 3c 2d  |=12..D.  . oy%<-|
00000790  31 32 20 6f 79 25 3d 2d  31 32 0d 02 4e 06 20 cd  |12 oy%=-12..N. .|
000007a0  0d 02 58 1b 20 e7 20 78  25 3d 30 20 65 78 25 3d  |..X. . x%=0 ex%=|
000007b0  6f 78 25 3a 65 79 25 3d  6f 79 25 0d 02 62 1b 20  |ox%:ey%=oy%..b. |
000007c0  e7 20 78 25 3d 31 20 66  78 25 3d 6f 78 25 3a 66  |. x%=1 fx%=ox%:f|
000007d0  79 25 3d 6f 79 25 0d 02  6c 05 ed 0d 02 76 31 e7  |y%=oy%..l....v1.|
000007e0  20 65 78 25 3c 3e 67 78  25 20 84 20 66 78 25 3c  | ex%<>gx% . fx%<|
000007f0  3e 68 78 25 20 84 20 65  79 25 3c 3e 67 79 25 20  |>hx% . ey%<>gy% |
00000800  84 20 66 79 25 3c 3e 68  79 25 20 8c 0d 02 80 31  |. fy%<>hy% ....1|
00000810  20 21 42 25 3d 65 79 65  73 25 3a 42 25 21 34 3d  | !B%=eyes%:B%!4=|
00000820  34 32 3a 42 25 21 38 3d  2d 36 34 3a 42 25 21 31  |42:B%!8=-64:B%!1|
00000830  32 3d 32 31 38 3a 42 25  21 31 36 3d 34 0d 02 8a  |2=218:B%!16=4...|
00000840  26 20 c8 99 22 57 69 6d  70 5f 55 70 64 61 74 65  |& .."Wimp_Update|
00000850  57 69 6e 64 6f 77 22 2c  2c 42 25 20 b8 20 6d 6f  |Window",,B% . mo|
00000860  72 65 25 0d 02 94 38 20  20 c8 95 20 6d 6f 72 65  |re%...8  .. more|
00000870  25 3a f2 65 79 65 73 3a  c8 99 22 57 69 6d 70 5f  |%:.eyes:.."Wimp_|
00000880  47 65 74 52 65 63 74 61  6e 67 6c 65 22 2c 2c 42  |GetRectangle",,B|
00000890  25 20 b8 20 6d 6f 72 65  25 3a ce 0d 02 9e 07 cd  |% . more%:......|
000008a0  3a e1 0d 02 a8 04 0d 02  b2 0d dd f2 64 6f 5f 77  |:...........do_w|
000008b0  69 6e 64 0d 02 bc 38 ea  6d 6f 72 65 25 3a c8 99  |ind...8.more%:..|
000008c0  22 57 69 6d 70 5f 47 65  74 57 69 6e 64 6f 77 53  |"Wimp_GetWindowS|
000008d0  74 61 74 65 22 2c 2c 42  25 3a 77 78 25 3d 42 25  |tate",,B%:wx%=B%|
000008e0  21 34 3a 77 79 25 3d 42  25 21 38 0d 02 c6 25 c8  |!4:wy%=B%!8...%.|
000008f0  99 22 57 69 6d 70 5f 52  65 64 72 61 77 57 69 6e  |."Wimp_RedrawWin|
00000900  64 6f 77 22 2c 2c 42 25  20 b8 20 6d 6f 72 65 25  |dow",,B% . more%|
00000910  0d 02 d0 0c c8 95 20 6d  6f 72 65 25 0d 02 da 2c  |...... more%...,|
00000920  20 f2 65 79 65 73 3a c8  99 22 57 69 6d 70 5f 47  | .eyes:.."Wimp_G|
00000930  65 74 52 65 63 74 61 6e  67 6c 65 22 2c 2c 42 25  |etRectangle",,B%|
00000940  20 b8 20 6d 6f 72 65 25  0d 02 e4 07 ce 3a e1 0d  | . more%.....:..|
00000950  02 ee 04 0d 02 f8 0a dd  f2 65 79 65 73 0d 03 02  |.........eyes...|
00000960  3c c8 99 22 57 69 6d 70  5f 52 65 61 64 50 69 78  |<.."Wimp_ReadPix|
00000970  54 72 61 6e 73 22 2c 26  31 30 30 2c 73 70 25 2c  |Trans",&100,sp%,|
00000980  22 73 6f 63 6b 65 74 22  2c 2c 2c 2c 73 63 61 6c  |"socket",,,,scal|
00000990  65 25 2c 74 72 61 6e 73  25 0d 03 0c 40 c8 99 22  |e%,trans%...@.."|
000009a0  4f 53 5f 53 70 72 69 74  65 4f 70 22 2c 26 31 33  |OS_SpriteOp",&13|
000009b0  34 2c 73 70 25 2c 22 73  6f 63 6b 65 74 22 2c 39  |4,sp%,"socket",9|
000009c0  32 2b 77 78 25 2c 77 79  25 2c 38 2c 73 63 61 6c  |2+wx%,wy%,8,scal|
000009d0  65 25 2c 74 72 61 6e 73  25 0d 03 16 49 c8 99 22  |e%,trans%...I.."|
000009e0  4f 53 5f 53 70 72 69 74  65 4f 70 22 2c 26 31 33  |OS_SpriteOp",&13|
000009f0  34 2c 73 70 25 2c 22 65  79 65 22 2c 31 30 36 2b  |4,sp%,"eye",106+|
00000a00  65 78 25 2b 77 78 25 2c  32 34 2b 65 79 25 2b 77  |ex%+wx%,24+ey%+w|
00000a10  79 25 2c 38 2c 73 63 61  6c 65 25 2c 74 72 61 6e  |y%,8,scale%,tran|
00000a20  73 25 0d 03 20 49 c8 99  22 4f 53 5f 53 70 72 69  |s%.. I.."OS_Spri|
00000a30  74 65 4f 70 22 2c 26 31  33 34 2c 73 70 25 2c 22  |teOp",&134,sp%,"|
00000a40  65 79 65 22 2c 31 34 30  2b 66 78 25 2b 77 78 25  |eye",140+fx%+wx%|
00000a50  2c 32 34 2b 66 79 25 2b  77 79 25 2c 38 2c 73 63  |,24+fy%+wy%,8,sc|
00000a60  61 6c 65 25 2c 74 72 61  6e 73 25 0d 03 2a 05 e1  |ale%,trans%..*..|
00000a70  0d 03 34 04 0d 03 3e 0b  dd f2 65 72 72 6f 72 0d  |..4...>...error.|
00000a80  03 48 3e 24 28 42 25 2b  34 29 3d f6 24 2b 22 3a  |.H>$(B%+4)=.$+":|
00000a90  20 49 6e 74 65 72 6e 61  6c 20 65 72 72 6f 72 20  | Internal error |
00000aa0  63 6f 64 65 20 22 2b c3  9e 2b 22 20 28 43 61 6e  |code "+..+" (Can|
00000ab0  63 65 6c 20 74 6f 20 71  75 69 74 29 22 0d 03 52  |cel to quit)"..R|
00000ac0  2e c8 99 22 57 69 6d 70  5f 52 65 70 6f 72 74 45  |..."Wimp_ReportE|
00000ad0  72 72 6f 72 22 2c 42 25  2c 33 2c 22 42 61 62 79  |rror",B%,3,"Baby|
00000ae0  42 6c 75 65 73 22 20 b8  20 2c 62 0d 03 5c 21 e7  |Blues" . ,b..\!.|
00000af0  62 3d 31 20 e1 20 8b 20  c8 99 22 57 69 6d 70 5f  |b=1 . . .."Wimp_|
00000b00  43 6c 6f 73 65 44 6f 77  6e 22 3a e0 0d ff        |CloseDown":...|
00000b0e