Home » Archimedes archive » Micro User » MU 1990-11.adf » PD-Stuff » SillyBits/!Muncher/!RunImage
SillyBits/!Muncher/!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 » Archimedes archive » Micro User » MU 1990-11.adf » PD-Stuff |
Filename: | SillyBits/!Muncher/!RunImage |
Read OK: | ✔ |
File size: | 08D1 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
10REM >!RunImage 20REM (C)1989 PAUL VIGAY 30REM 40REM A completely silly little demo 50REM Written by Paul Vigay 60REM If you have any comments or ideas for future versions or programs, 70REM then please contact me via; 80REM Telecom Gold - 80:BTG663 90REM or Prestel MBX - 011152785 100REM 110REM Latest version : 1.1d (11th April 1990) 120REM 130REM version 1.1c (2nd December 1989) (original) 140REM version 1.1d gives provision for CTRL f1 to create pac-man 150REM and slightly increased speed. 160REM Also allows sound voices to be shifted around ! 170REM 180task%=&4B534154 190path$="<Muncher$Path>" 200SYS "Wimp_Initialise",200,task%,"Muncher" TO ,task_handle% 210DIM pb% 256 220end%=FALSE 230maxx%=1280 240X%=maxx%+RND(10000):Y%=RND(900):S=0:s=.2:M%=0 250s%=OPENIN(path$+".Sprites"):t%=EXT#s%+16:CLOSE#s% 260DIM sprites% t%,factors% 15,pixtrans% 15 270!sprites%=t%:sprites%!8=3 280SYS "OS_SpriteOp",&109,sprites% 290SYS "OS_SpriteOp",&10A,sprites%,path$+".Sprites" 300SYS"Sound_InstallVoice",0,1 TO r0,r1 310voice$="" 320WHILE ?r0<>0:voice$+=CHR$(?r0):r0+=1:ENDWHILE 330SYS"Sound_Configure" TO old0,old1,old2,old3,old4 340PROCgetmodeinfo 350REPEAT 360 SYS "Wimp_Poll",,pb% TO reason% 370 CASE MODE OF 380 WHEN 16,17,24:maxx%=2110 390 OTHERWISE maxx%=1279 400 ENDCASE 410 CASE reason% OF 420 WHEN 0:SYS "OS_SpriteOp",&134,sprites%,STR$(INT(S)),X%,Y%,8,factors%,pixtrans% 430 S+=s 440 IF S>3.6 AND X%<maxx% SYS"Sound_Configure",0,0,40:SYS "Sound_AttachNamedVoice",1,"Munch":SOUND 1,&16F,&3800,1 450 IF S>3.6 s=-.2 460 IF S<.4 s=.2 470 IF INKEY -1 AND INKEY-114 AND X%>maxx% X%=maxx% 480 X%=X%-4 490 IF X%<-150 THEN 500 X%=RND(maxx%)+RND(8000):Y%=RND(900) 510 SYS"Sound_Configure",old0,old1,old2,old3,old4 520 SYS "Sound_AttachNamedVoice",1,voice$ 530 ENDIF 540 WHEN 6:end%=TRUE 550 WHEN 8:SYS "Wimp_ProcessKey",pb%!24 560 WHEN 17,18 570 CASE pb%!16 OF 580 WHEN 0:end%=TRUE 590 WHEN &400C1:PROCgetmodeinfo 600 ENDCASE 610 ENDCASE 620UNTIL end% 630SYS"Sound_Configure",old0,old1,old2,old3,old4 640SYS "Sound_AttachNamedVoice",1,voice$ 650*RMKILL Munch 660SYS "Wimp_CloseDown",task_handle%,task% 670END 680 690DEFPROCgetmodeinfo 700SYS"Wimp_ReadPixTrans",&100,sprites%,"0",,,,factors%,pixtrans% 710ENDPROC
� >!RunImage � (C)1989 PAUL VIGAY � ($� A completely silly little demo 2� Written by Paul Vigay <H� If you have any comments or ideas for future versions or programs, F!� then please contact me via; P9� Telecom Gold - 80:BTG663 Z9� or Prestel MBX - 011152785 d� n-� Latest version : 1.1d (11th April 1990) x� �1� version 1.1c (2nd December 1989) (original) �@� version 1.1d gives provision for CTRL f1 to create pac-man �0� and slightly increased speed. �B� Also allows sound voices to be shifted around ! �� �task%=&4B534154 �path$="<Muncher$Path>" �<ș "Wimp_Initialise",200,task%,"Muncher" � ,task_handle% � � pb% 256 � end%=� �maxx%=1280 �-X%=maxx%+�(10000):Y%=�(900):S=0:s=.2:M%=0 �*s%=�(path$+".Sprites"):t%=�#s%+16:�#s% *� sprites% t%,factors% 15,pixtrans% 15 !sprites%=t%:sprites%!8=3 "ș "OS_SpriteOp",&109,sprites% "3ș "OS_SpriteOp",&10A,sprites%,path$+".Sprites" ,&ș"Sound_InstallVoice",0,1 � r0,r1 6 voice$="" @$ȕ ?r0<>0:voice$+=�(?r0):r0+=1:� J2ș"Sound_Configure" � old0,old1,old2,old3,old4 T�getmodeinfo ^� h# ș "Wimp_Poll",,pb% � reason% r Ȏ � � | � 16,17,24:maxx%=2110 � maxx%=1279 � � � Ȏ reason% � �M � 0:ș "OS_SpriteOp",&134,sprites%,�(�(S)),X%,Y%,8,factors%,pixtrans% � S+=s �s � S>3.6 � X%<maxx% ș"Sound_Configure",0,0,40:ș "Sound_AttachNamedVoice",1,"Munch":� 1,&16F,&3800,1 � � S>3.6 s=-.2 � � S<.4 s=.2 �1 � � -1 � �-114 � X%>maxx% X%=maxx% � X%=X%-4 � � X%<-150 � �. X%=�(maxx%)+�(8000):Y%=�(900) �= ș"Sound_Configure",old0,old1,old2,old3,old4 5 ș "Sound_AttachNamedVoice",1,voice$ � � 6:end%=� &' � 8:ș "Wimp_ProcessKey",pb%!24 0 � 17,18 : Ȏ pb%!16 � D � 0:end%=� N& � &400C1:�getmodeinfo X � b � l � end% v0ș"Sound_Configure",old0,old1,old2,old3,old4 �(ș "Sound_AttachNamedVoice",1,voice$ �*RMKILL Munch �*ș "Wimp_CloseDown",task_handle%,task% �� � ���getmodeinfo �Aș"Wimp_ReadPixTrans",&100,sprites%,"0",,,,factors%,pixtrans% �� �
00000000 0d 00 0a 10 f4 20 3e 21 52 75 6e 49 6d 61 67 65 |..... >!RunImage| 00000010 0d 00 14 18 f4 20 28 43 29 31 39 38 39 20 50 41 |..... (C)1989 PA| 00000020 55 4c 20 56 49 47 41 59 0d 00 1e 05 f4 0d 00 28 |UL VIGAY.......(| 00000030 24 f4 20 41 20 63 6f 6d 70 6c 65 74 65 6c 79 20 |$. A completely | 00000040 73 69 6c 6c 79 20 6c 69 74 74 6c 65 20 64 65 6d |silly little dem| 00000050 6f 0d 00 32 1b f4 20 57 72 69 74 74 65 6e 20 62 |o..2.. Written b| 00000060 79 20 50 61 75 6c 20 56 69 67 61 79 0d 00 3c 48 |y Paul Vigay..<H| 00000070 f4 20 49 66 20 79 6f 75 20 68 61 76 65 20 61 6e |. If you have an| 00000080 79 20 63 6f 6d 6d 65 6e 74 73 20 6f 72 20 69 64 |y comments or id| 00000090 65 61 73 20 66 6f 72 20 66 75 74 75 72 65 20 76 |eas for future v| 000000a0 65 72 73 69 6f 6e 73 20 6f 72 20 70 72 6f 67 72 |ersions or progr| 000000b0 61 6d 73 2c 0d 00 46 21 f4 20 74 68 65 6e 20 70 |ams,..F!. then p| 000000c0 6c 65 61 73 65 20 63 6f 6e 74 61 63 74 20 6d 65 |lease contact me| 000000d0 20 76 69 61 3b 0d 00 50 39 f4 20 20 20 20 20 20 | via;..P9. | 000000e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000000f0 20 20 20 20 20 20 54 65 6c 65 63 6f 6d 20 47 6f | Telecom Go| 00000100 6c 64 20 2d 20 38 30 3a 42 54 47 36 36 33 0d 00 |ld - 80:BTG663..| 00000110 5a 39 f4 20 20 20 20 20 20 20 20 20 20 20 20 20 |Z9. | 00000120 20 20 20 20 6f 72 20 20 20 20 20 20 20 20 20 50 | or P| 00000130 72 65 73 74 65 6c 20 4d 42 58 20 20 2d 20 30 31 |restel MBX - 01| 00000140 31 31 35 32 37 38 35 0d 00 64 05 f4 0d 00 6e 2d |1152785..d....n-| 00000150 f4 20 4c 61 74 65 73 74 20 76 65 72 73 69 6f 6e |. Latest version| 00000160 20 3a 20 31 2e 31 64 20 28 31 31 74 68 20 41 70 | : 1.1d (11th Ap| 00000170 72 69 6c 20 31 39 39 30 29 0d 00 78 05 f4 0d 00 |ril 1990)..x....| 00000180 82 31 f4 20 76 65 72 73 69 6f 6e 20 31 2e 31 63 |.1. version 1.1c| 00000190 20 28 32 6e 64 20 44 65 63 65 6d 62 65 72 20 31 | (2nd December 1| 000001a0 39 38 39 29 20 28 6f 72 69 67 69 6e 61 6c 29 0d |989) (original).| 000001b0 00 8c 40 f4 20 76 65 72 73 69 6f 6e 20 31 2e 31 |..@. version 1.1| 000001c0 64 20 67 69 76 65 73 20 70 72 6f 76 69 73 69 6f |d gives provisio| 000001d0 6e 20 66 6f 72 20 43 54 52 4c 20 66 31 20 74 6f |n for CTRL f1 to| 000001e0 20 63 72 65 61 74 65 20 70 61 63 2d 6d 61 6e 0d | create pac-man.| 000001f0 00 96 30 f4 20 20 20 20 20 20 20 20 20 20 20 20 |..0. | 00000200 20 20 61 6e 64 20 73 6c 69 67 68 74 6c 79 20 69 | and slightly i| 00000210 6e 63 72 65 61 73 65 64 20 73 70 65 65 64 2e 0d |ncreased speed..| 00000220 00 a0 42 f4 20 20 20 20 20 20 20 20 20 20 20 20 |..B. | 00000230 20 20 41 6c 73 6f 20 61 6c 6c 6f 77 73 20 73 6f | Also allows so| 00000240 75 6e 64 20 76 6f 69 63 65 73 20 74 6f 20 62 65 |und voices to be| 00000250 20 73 68 69 66 74 65 64 20 61 72 6f 75 6e 64 20 | shifted around | 00000260 21 0d 00 aa 05 f4 0d 00 b4 13 74 61 73 6b 25 3d |!.........task%=| 00000270 26 34 42 35 33 34 31 35 34 0d 00 be 1a 70 61 74 |&4B534154....pat| 00000280 68 24 3d 22 3c 4d 75 6e 63 68 65 72 24 50 61 74 |h$="<Muncher$Pat| 00000290 68 3e 22 0d 00 c8 3c c8 99 20 22 57 69 6d 70 5f |h>"...<.. "Wimp_| 000002a0 49 6e 69 74 69 61 6c 69 73 65 22 2c 32 30 30 2c |Initialise",200,| 000002b0 74 61 73 6b 25 2c 22 4d 75 6e 63 68 65 72 22 20 |task%,"Muncher" | 000002c0 b8 20 2c 74 61 73 6b 5f 68 61 6e 64 6c 65 25 0d |. ,task_handle%.| 000002d0 00 d2 0d de 20 70 62 25 20 32 35 36 0d 00 dc 0a |.... pb% 256....| 000002e0 65 6e 64 25 3d a3 0d 00 e6 0e 6d 61 78 78 25 3d |end%=.....maxx%=| 000002f0 31 32 38 30 0d 00 f0 2d 58 25 3d 6d 61 78 78 25 |1280...-X%=maxx%| 00000300 2b b3 28 31 30 30 30 30 29 3a 59 25 3d b3 28 39 |+.(10000):Y%=.(9| 00000310 30 30 29 3a 53 3d 30 3a 73 3d 2e 32 3a 4d 25 3d |00):S=0:s=.2:M%=| 00000320 30 0d 00 fa 2a 73 25 3d 8e 28 70 61 74 68 24 2b |0...*s%=.(path$+| 00000330 22 2e 53 70 72 69 74 65 73 22 29 3a 74 25 3d a2 |".Sprites"):t%=.| 00000340 23 73 25 2b 31 36 3a d9 23 73 25 0d 01 04 2a de |#s%+16:.#s%...*.| 00000350 20 73 70 72 69 74 65 73 25 20 74 25 2c 66 61 63 | sprites% t%,fac| 00000360 74 6f 72 73 25 20 31 35 2c 70 69 78 74 72 61 6e |tors% 15,pixtran| 00000370 73 25 20 31 35 0d 01 0e 1d 21 73 70 72 69 74 65 |s% 15....!sprite| 00000380 73 25 3d 74 25 3a 73 70 72 69 74 65 73 25 21 38 |s%=t%:sprites%!8| 00000390 3d 33 0d 01 18 22 c8 99 20 22 4f 53 5f 53 70 72 |=3...".. "OS_Spr| 000003a0 69 74 65 4f 70 22 2c 26 31 30 39 2c 73 70 72 69 |iteOp",&109,spri| 000003b0 74 65 73 25 0d 01 22 33 c8 99 20 22 4f 53 5f 53 |tes%.."3.. "OS_S| 000003c0 70 72 69 74 65 4f 70 22 2c 26 31 30 41 2c 73 70 |priteOp",&10A,sp| 000003d0 72 69 74 65 73 25 2c 70 61 74 68 24 2b 22 2e 53 |rites%,path$+".S| 000003e0 70 72 69 74 65 73 22 0d 01 2c 26 c8 99 22 53 6f |prites"..,&.."So| 000003f0 75 6e 64 5f 49 6e 73 74 61 6c 6c 56 6f 69 63 65 |und_InstallVoice| 00000400 22 2c 30 2c 31 20 b8 20 72 30 2c 72 31 0d 01 36 |",0,1 . r0,r1..6| 00000410 0d 76 6f 69 63 65 24 3d 22 22 0d 01 40 24 c8 95 |.voice$=""..@$..| 00000420 20 3f 72 30 3c 3e 30 3a 76 6f 69 63 65 24 2b 3d | ?r0<>0:voice$+=| 00000430 bd 28 3f 72 30 29 3a 72 30 2b 3d 31 3a ce 0d 01 |.(?r0):r0+=1:...| 00000440 4a 32 c8 99 22 53 6f 75 6e 64 5f 43 6f 6e 66 69 |J2.."Sound_Confi| 00000450 67 75 72 65 22 20 b8 20 6f 6c 64 30 2c 6f 6c 64 |gure" . old0,old| 00000460 31 2c 6f 6c 64 32 2c 6f 6c 64 33 2c 6f 6c 64 34 |1,old2,old3,old4| 00000470 0d 01 54 10 f2 67 65 74 6d 6f 64 65 69 6e 66 6f |..T..getmodeinfo| 00000480 0d 01 5e 05 f5 0d 01 68 23 20 20 c8 99 20 22 57 |..^....h# .. "W| 00000490 69 6d 70 5f 50 6f 6c 6c 22 2c 2c 70 62 25 20 b8 |imp_Poll",,pb% .| 000004a0 20 72 65 61 73 6f 6e 25 0d 01 72 0c 20 20 c8 8e | reason%..r. ..| 000004b0 20 eb 20 ca 0d 01 7c 1d 20 20 20 20 c9 20 31 36 | . ...|. . 16| 000004c0 2c 31 37 2c 32 34 3a 6d 61 78 78 25 3d 32 31 31 |,17,24:maxx%=211| 000004d0 30 0d 01 86 14 20 20 20 20 7f 20 6d 61 78 78 25 |0.... . maxx%| 000004e0 3d 31 32 37 39 0d 01 90 07 20 20 cb 0d 01 9a 12 |=1279.... .....| 000004f0 20 20 c8 8e 20 72 65 61 73 6f 6e 25 20 ca 0d 01 | .. reason% ...| 00000500 a4 4d 20 20 20 20 c9 20 30 3a c8 99 20 22 4f 53 |.M . 0:.. "OS| 00000510 5f 53 70 72 69 74 65 4f 70 22 2c 26 31 33 34 2c |_SpriteOp",&134,| 00000520 73 70 72 69 74 65 73 25 2c c3 28 a8 28 53 29 29 |sprites%,.(.(S))| 00000530 2c 58 25 2c 59 25 2c 38 2c 66 61 63 74 6f 72 73 |,X%,Y%,8,factors| 00000540 25 2c 70 69 78 74 72 61 6e 73 25 0d 01 ae 13 20 |%,pixtrans%.... | 00000550 20 20 20 20 20 20 20 20 20 20 53 2b 3d 73 0d 01 | S+=s..| 00000560 b8 73 20 20 20 20 20 20 20 20 20 20 20 e7 20 53 |.s . S| 00000570 3e 33 2e 36 20 80 20 58 25 3c 6d 61 78 78 25 20 |>3.6 . X%<maxx% | 00000580 c8 99 22 53 6f 75 6e 64 5f 43 6f 6e 66 69 67 75 |.."Sound_Configu| 00000590 72 65 22 2c 30 2c 30 2c 34 30 3a c8 99 20 22 53 |re",0,0,40:.. "S| 000005a0 6f 75 6e 64 5f 41 74 74 61 63 68 4e 61 6d 65 64 |ound_AttachNamed| 000005b0 56 6f 69 63 65 22 2c 31 2c 22 4d 75 6e 63 68 22 |Voice",1,"Munch"| 000005c0 3a d4 20 31 2c 26 31 36 46 2c 26 33 38 30 30 2c |:. 1,&16F,&3800,| 000005d0 31 0d 01 c2 1c 20 20 20 20 20 20 20 20 20 20 20 |1.... | 000005e0 e7 20 53 3e 33 2e 36 20 73 3d 2d 2e 32 0d 01 cc |. S>3.6 s=-.2...| 000005f0 1a 20 20 20 20 20 20 20 20 20 20 20 e7 20 53 3c |. . S<| 00000600 2e 34 20 73 3d 2e 32 0d 01 d6 31 20 20 20 20 20 |.4 s=.2...1 | 00000610 20 20 20 20 20 20 e7 20 a6 20 2d 31 20 80 20 a6 | . . -1 . .| 00000620 2d 31 31 34 20 80 20 58 25 3e 6d 61 78 78 25 20 |-114 . X%>maxx% | 00000630 58 25 3d 6d 61 78 78 25 0d 01 e0 16 20 20 20 20 |X%=maxx%.... | 00000640 20 20 20 20 20 20 20 58 25 3d 58 25 2d 34 0d 01 | X%=X%-4..| 00000650 ea 1a 20 20 20 20 20 20 20 20 20 20 20 e7 20 58 |.. . X| 00000660 25 3c 2d 31 35 30 20 8c 0d 01 f4 2e 20 20 20 20 |%<-150 ..... | 00000670 20 20 20 20 20 20 20 20 20 58 25 3d b3 28 6d 61 | X%=.(ma| 00000680 78 78 25 29 2b b3 28 38 30 30 30 29 3a 59 25 3d |xx%)+.(8000):Y%=| 00000690 b3 28 39 30 30 29 0d 01 fe 3d 20 20 20 20 20 20 |.(900)...= | 000006a0 20 20 20 20 20 20 20 c8 99 22 53 6f 75 6e 64 5f | .."Sound_| 000006b0 43 6f 6e 66 69 67 75 72 65 22 2c 6f 6c 64 30 2c |Configure",old0,| 000006c0 6f 6c 64 31 2c 6f 6c 64 32 2c 6f 6c 64 33 2c 6f |old1,old2,old3,o| 000006d0 6c 64 34 0d 02 08 35 20 20 20 20 20 20 20 20 20 |ld4...5 | 000006e0 20 20 20 20 c8 99 20 22 53 6f 75 6e 64 5f 41 74 | .. "Sound_At| 000006f0 74 61 63 68 4e 61 6d 65 64 56 6f 69 63 65 22 2c |tachNamedVoice",| 00000700 31 2c 76 6f 69 63 65 24 0d 02 12 10 20 20 20 20 |1,voice$.... | 00000710 20 20 20 20 20 20 20 cd 0d 02 1c 12 20 20 20 20 | ..... | 00000720 c9 20 36 3a 65 6e 64 25 3d b9 0d 02 26 27 20 20 |. 6:end%=...&' | 00000730 20 20 c9 20 38 3a c8 99 20 22 57 69 6d 70 5f 50 | . 8:.. "Wimp_P| 00000740 72 6f 63 65 73 73 4b 65 79 22 2c 70 62 25 21 32 |rocessKey",pb%!2| 00000750 34 0d 02 30 0f 20 20 20 20 c9 20 31 37 2c 31 38 |4..0. . 17,18| 00000760 0d 02 3a 1a 20 20 20 20 20 20 20 20 20 20 20 c8 |..:. .| 00000770 8e 20 70 62 25 21 31 36 20 ca 0d 02 44 1b 20 20 |. pb%!16 ...D. | 00000780 20 20 20 20 20 20 20 20 20 20 20 c9 20 30 3a 65 | . 0:e| 00000790 6e 64 25 3d b9 0d 02 4e 26 20 20 20 20 20 20 20 |nd%=...N& | 000007a0 20 20 20 20 20 20 c9 20 26 34 30 30 43 31 3a f2 | . &400C1:.| 000007b0 67 65 74 6d 6f 64 65 69 6e 66 6f 0d 02 58 10 20 |getmodeinfo..X. | 000007c0 20 20 20 20 20 20 20 20 20 20 cb 0d 02 62 07 20 | ...b. | 000007d0 20 cb 0d 02 6c 0a fd 20 65 6e 64 25 0d 02 76 30 | ...l.. end%..v0| 000007e0 c8 99 22 53 6f 75 6e 64 5f 43 6f 6e 66 69 67 75 |.."Sound_Configu| 000007f0 72 65 22 2c 6f 6c 64 30 2c 6f 6c 64 31 2c 6f 6c |re",old0,old1,ol| 00000800 64 32 2c 6f 6c 64 33 2c 6f 6c 64 34 0d 02 80 28 |d2,old3,old4...(| 00000810 c8 99 20 22 53 6f 75 6e 64 5f 41 74 74 61 63 68 |.. "Sound_Attach| 00000820 4e 61 6d 65 64 56 6f 69 63 65 22 2c 31 2c 76 6f |NamedVoice",1,vo| 00000830 69 63 65 24 0d 02 8a 11 2a 52 4d 4b 49 4c 4c 20 |ice$....*RMKILL | 00000840 4d 75 6e 63 68 0d 02 94 2a c8 99 20 22 57 69 6d |Munch...*.. "Wim| 00000850 70 5f 43 6c 6f 73 65 44 6f 77 6e 22 2c 74 61 73 |p_CloseDown",tas| 00000860 6b 5f 68 61 6e 64 6c 65 25 2c 74 61 73 6b 25 0d |k_handle%,task%.| 00000870 02 9e 05 e0 0d 02 a8 04 0d 02 b2 11 dd f2 67 65 |..............ge| 00000880 74 6d 6f 64 65 69 6e 66 6f 0d 02 bc 41 c8 99 22 |tmodeinfo...A.."| 00000890 57 69 6d 70 5f 52 65 61 64 50 69 78 54 72 61 6e |Wimp_ReadPixTran| 000008a0 73 22 2c 26 31 30 30 2c 73 70 72 69 74 65 73 25 |s",&100,sprites%| 000008b0 2c 22 30 22 2c 2c 2c 2c 66 61 63 74 6f 72 73 25 |,"0",,,,factors%| 000008c0 2c 70 69 78 74 72 61 6e 73 25 0d 02 c6 05 e1 0d |,pixtrans%......| 000008d0 ff |.| 000008d1