Home » Archimedes archive » Acorn Computing » 1994 04.adf » 9404 » BodyBuild/!Racer/RACE
BodyBuild/!Racer/RACE
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 Computing » 1994 04.adf » 9404 |
Filename: | BodyBuild/!Racer/RACE |
Read OK: | ✔ |
File size: | 0713 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
10REM><Race$Dir>.RACE 20REM Race game Copyright Mike Cook 1994 30MODE 15 40COLOUR 128+63 TINT 255:COLOUR 0:CLS 50PRINTTAB(10,1)"Racing game" 60PRINTTAB(10,2)"By Mike Cook" 70PRINTTAB(0,4)"This needs the Hardware interface" 80PRINT"Body Building April 94 Acorn Computing" 90PRINT:PRINT"Press any key for a race OR R for a random race" 100A$=GET$ 110IF A$="r" OR A$="R" THEN RR%=TRUE ELSE RR%=FALSE 120SSIZE%=30000 130DIM SPBK% SSIZE%,SS%(4),X%(4),Y%(4),N$(4) 140PROC_InitS 150REPEAT 160PROC_Start 170FINISH=FALSE 180REPEAT 190PROC_Advance 200PROC_Plot 210PROC_End 220UNTIL FINISH 230PROC_Win 240UNTIL FALSE 250END 260 270DEF PROC_Win 280VDU4 290PRINTTAB(10,28)"The Winner is ... ";N$(WIN%) 300PRINT:PRINT"Press any key for another race OR R for a random race" 310A$=GET$ 320IF A$="r" OR A$="R" THEN RR%=TRUE ELSE RR%=FALSE 330ENDPROC 340 350DEF PROC_End 360LOCAL A% 370FOR A%=1 TO 4 380IF X%(A%)>1100 THEN FINISH=TRUE:WIN%=A% 390NEXT 400ENDPROC 410 420DEF PROC_Start 430COLOUR 128+63 TINT 255:COLOUR 0:CLS 440PRINTTAB(10,1)"Racing game" 450PRINTTAB(10,2)"By Mike Cook" 460FOR A%=1 TO 4 470SS%(A%)=1 480X%(A%)=100 490Y%(A%)=A%*170 500NEXT 510VDU5 520GCOL 0,0 530FOR A%=1 TO 4 540SN$=CHR$(&60+A%)+"s" 550SYS "OS_SpriteOp",34+256,SPBK%,SN$,X%(A%),Y%(A%) 560MOVE 0,Y%(A%)+84 570PRINTN$(A%) 580NEXT 590GCOL 0,48 600RECTANGLEFILL 1134,160,20,700 610ENDPROC 620 630DEF PROC_Plot 640LOCAL A% 650FOR A%=1 TO 4 660SN$=CHR$(&60+A%)+STR$(SS%(A%)) 670SYS "OS_SpriteOp",34+256,SPBK%,SN$,X%(A%),Y%(A%) 680NEXT 690ENDPROC 700END 710 720DEF PROC_Advance 730LOCAL A% 740IF RR% THEN 750A%=RND(4) 760X%(A%)+=4 770SS%(A%)+=1 780IF SS%(A%)=5 THEN SS%(A%)=1 790*FX19 800ELSE 810SYS 6,150,&60 TO ,, A% 820A%=A% EOR &FF 830IF (A% AND &3)<> &3 THEN X%(1)+=4:SS%(1)+=1 840IF (A% AND &C)<> &C THEN X%(2)+=4:SS%(2)+=1 850IF (A% AND &30)<> &30 THEN X%(3)+=4:SS%(3)+=1 860IF (A% AND &C0)<> &C0 THEN X%(4)+=4:SS%(4)+=1 870FOR A%=1 TO 4 880IF SS%(A%)=5 THEN SS%(A%)=1 890NEXT 900ENDIF 910ENDPROC 920 930DEF PROC_InitS 940SPBK%!0=SSIZE% 950SPBK%!8=16 960SYS "OS_SpriteOp",9+512,SPBK% 970SFN$="<Race$DIR>.RaceSpr" 980SYS "OS_SpriteOp",10+512,SPBK%,SFN$ 990FOR A%=1 TO 4 1000READ N$(A%) 1010NEXT 1020ENDPROC 1030DATA Red,Blue,Green,Yellow
�><Race$Dir>.RACE (� Race game Copyright Mike Cook 1994 � 15 (� 128+63 Ȝ 255:� 0:� 2�10,1)"Racing game" <�10,2)"By Mike Cook" F-�0,4)"This needs the Hardware interface" P-�"Body Building April 94 Acorn Computing" Z8�:�"Press any key for a race OR R for a random race" dA$=� n%� A$="r" � A$="R" � RR%=� � RR%=� xSSIZE%=30000 �+� SPBK% SSIZE%,SS%(4),X%(4),Y%(4),N$(4) ��_InitS �� ��_Start �FINISH=� �� � �_Advance � �_Plot � �_End �� FINISH � �_Win �� � �� � �_Win �4 ")�10,28)"The Winner is ... ";N$(WIN%) ,>�:�"Press any key for another race OR R for a random race" 6A$=� @%� A$="r" � A$="R" � RR%=� � RR%=� J� T ^� �_End h� A% r� A%=1 � 4 |$� X%(A%)>1100 � FINISH=�:WIN%=A% �� �� � � � �_Start �� 128+63 Ȝ 255:� 0:� ��10,1)"Racing game" ��10,2)"By Mike Cook" �� A%=1 � 4 � SS%(A%)=1 �X%(A%)=100 �Y%(A%)=A%*170 �� ��5 � 0,0 � A%=1 � 4 SN$=�(&60+A%)+"s" &3ș "OS_SpriteOp",34+256,SPBK%,SN$,X%(A%),Y%(A%) 0� 0,Y%(A%)+84 :�N$(A%) D� N � 0,48 XȓȐ 1134,160,20,700 b� l v� �_Plot �� A% �� A%=1 � 4 �SN$=�(&60+A%)+�(SS%(A%)) �3ș "OS_SpriteOp",34+256,SPBK%,SN$,X%(A%),Y%(A%) �� �� �� � �� �_Advance �� A% �� RR% � �A%=�(4) � X%(A%)+=4 SS%(A%)+=1 � SS%(A%)=5 � SS%(A%)=1 *FX19 � *ș 6,150,&60 � ,, A% 4A%=A% � &FF >)� (A% � &3)<> &3 � X%(1)+=4:SS%(1)+=1 H)� (A% � &C)<> &C � X%(2)+=4:SS%(2)+=1 R+� (A% � &30)<> &30 � X%(3)+=4:SS%(3)+=1 \+� (A% � &C0)<> &C0 � X%(4)+=4:SS%(4)+=1 f� A%=1 � 4 p� SS%(A%)=5 � SS%(A%)=1 z� �� �� � � � �_InitS �SPBK%!0=SSIZE% �SPBK%!8=16 � ș "OS_SpriteOp",9+512,SPBK% �SFN$="<Race$DIR>.RaceSpr" �&ș "OS_SpriteOp",10+512,SPBK%,SFN$ �� A%=1 � 4 �� N$(A%) �� �� � Red,Blue,Green,Yellow �
00000000 0d 00 0a 15 f4 3e 3c 52 61 63 65 24 44 69 72 3e |.....><Race$Dir>| 00000010 2e 52 41 43 45 0d 00 14 28 f4 20 52 61 63 65 20 |.RACE...(. Race | 00000020 67 61 6d 65 20 43 6f 70 79 72 69 67 68 74 20 4d |game Copyright M| 00000030 69 6b 65 20 43 6f 6f 6b 20 31 39 39 34 0d 00 1e |ike Cook 1994...| 00000040 08 eb 20 31 35 0d 00 28 19 fb 20 31 32 38 2b 36 |.. 15..(.. 128+6| 00000050 33 20 c8 9c 20 32 35 35 3a fb 20 30 3a db 0d 00 |3 .. 255:. 0:...| 00000060 32 18 f1 8a 31 30 2c 31 29 22 52 61 63 69 6e 67 |2...10,1)"Racing| 00000070 20 67 61 6d 65 22 0d 00 3c 19 f1 8a 31 30 2c 32 | game"..<...10,2| 00000080 29 22 42 79 20 4d 69 6b 65 20 43 6f 6f 6b 22 0d |)"By Mike Cook".| 00000090 00 46 2d f1 8a 30 2c 34 29 22 54 68 69 73 20 6e |.F-..0,4)"This n| 000000a0 65 65 64 73 20 74 68 65 20 48 61 72 64 77 61 72 |eeds the Hardwar| 000000b0 65 20 69 6e 74 65 72 66 61 63 65 22 0d 00 50 2d |e interface"..P-| 000000c0 f1 22 42 6f 64 79 20 42 75 69 6c 64 69 6e 67 20 |."Body Building | 000000d0 41 70 72 69 6c 20 39 34 20 41 63 6f 72 6e 20 43 |April 94 Acorn C| 000000e0 6f 6d 70 75 74 69 6e 67 22 0d 00 5a 38 f1 3a f1 |omputing"..Z8.:.| 000000f0 22 50 72 65 73 73 20 61 6e 79 20 6b 65 79 20 66 |"Press any key f| 00000100 6f 72 20 61 20 72 61 63 65 20 4f 52 20 52 20 66 |or a race OR R f| 00000110 6f 72 20 61 20 72 61 6e 64 6f 6d 20 72 61 63 65 |or a random race| 00000120 22 0d 00 64 08 41 24 3d be 0d 00 6e 25 e7 20 41 |"..d.A$=...n%. A| 00000130 24 3d 22 72 22 20 84 20 41 24 3d 22 52 22 20 8c |$="r" . A$="R" .| 00000140 20 52 52 25 3d b9 20 8b 20 52 52 25 3d a3 0d 00 | RR%=. . RR%=...| 00000150 78 10 53 53 49 5a 45 25 3d 33 30 30 30 30 0d 00 |x.SSIZE%=30000..| 00000160 82 2b de 20 53 50 42 4b 25 20 53 53 49 5a 45 25 |.+. SPBK% SSIZE%| 00000170 2c 53 53 25 28 34 29 2c 58 25 28 34 29 2c 59 25 |,SS%(4),X%(4),Y%| 00000180 28 34 29 2c 4e 24 28 34 29 0d 00 8c 0b f2 5f 49 |(4),N$(4)....._I| 00000190 6e 69 74 53 0d 00 96 05 f5 0d 00 a0 0b f2 5f 53 |nitS.........._S| 000001a0 74 61 72 74 0d 00 aa 0c 46 49 4e 49 53 48 3d a3 |tart....FINISH=.| 000001b0 0d 00 b4 05 f5 0d 00 be 0d f2 5f 41 64 76 61 6e |.........._Advan| 000001c0 63 65 0d 00 c8 0a f2 5f 50 6c 6f 74 0d 00 d2 09 |ce....._Plot....| 000001d0 f2 5f 45 6e 64 0d 00 dc 0c fd 20 46 49 4e 49 53 |._End..... FINIS| 000001e0 48 0d 00 e6 09 f2 5f 57 69 6e 0d 00 f0 07 fd 20 |H....._Win..... | 000001f0 a3 0d 00 fa 05 e0 0d 01 04 04 0d 01 0e 0b dd 20 |............... | 00000200 f2 5f 57 69 6e 0d 01 18 06 ef 34 0d 01 22 29 f1 |._Win.....4..").| 00000210 8a 31 30 2c 32 38 29 22 54 68 65 20 57 69 6e 6e |.10,28)"The Winn| 00000220 65 72 20 69 73 20 2e 2e 2e 20 22 3b 4e 24 28 57 |er is ... ";N$(W| 00000230 49 4e 25 29 0d 01 2c 3e f1 3a f1 22 50 72 65 73 |IN%)..,>.:."Pres| 00000240 73 20 61 6e 79 20 6b 65 79 20 66 6f 72 20 61 6e |s any key for an| 00000250 6f 74 68 65 72 20 72 61 63 65 20 4f 52 20 52 20 |other race OR R | 00000260 66 6f 72 20 61 20 72 61 6e 64 6f 6d 20 72 61 63 |for a random rac| 00000270 65 22 0d 01 36 08 41 24 3d be 0d 01 40 25 e7 20 |e"..6.A$=...@%. | 00000280 41 24 3d 22 72 22 20 84 20 41 24 3d 22 52 22 20 |A$="r" . A$="R" | 00000290 8c 20 52 52 25 3d b9 20 8b 20 52 52 25 3d a3 0d |. RR%=. . RR%=..| 000002a0 01 4a 05 e1 0d 01 54 04 0d 01 5e 0b dd 20 f2 5f |.J....T...^.. ._| 000002b0 45 6e 64 0d 01 68 08 ea 20 41 25 0d 01 72 0e e3 |End..h.. A%..r..| 000002c0 20 41 25 3d 31 20 b8 20 34 0d 01 7c 24 e7 20 58 | A%=1 . 4..|$. X| 000002d0 25 28 41 25 29 3e 31 31 30 30 20 8c 20 46 49 4e |%(A%)>1100 . FIN| 000002e0 49 53 48 3d b9 3a 57 49 4e 25 3d 41 25 0d 01 86 |ISH=.:WIN%=A%...| 000002f0 05 ed 0d 01 90 05 e1 0d 01 9a 04 0d 01 a4 0d dd |................| 00000300 20 f2 5f 53 74 61 72 74 0d 01 ae 19 fb 20 31 32 | ._Start..... 12| 00000310 38 2b 36 33 20 c8 9c 20 32 35 35 3a fb 20 30 3a |8+63 .. 255:. 0:| 00000320 db 0d 01 b8 18 f1 8a 31 30 2c 31 29 22 52 61 63 |.......10,1)"Rac| 00000330 69 6e 67 20 67 61 6d 65 22 0d 01 c2 19 f1 8a 31 |ing game"......1| 00000340 30 2c 32 29 22 42 79 20 4d 69 6b 65 20 43 6f 6f |0,2)"By Mike Coo| 00000350 6b 22 0d 01 cc 0e e3 20 41 25 3d 31 20 b8 20 34 |k"..... A%=1 . 4| 00000360 0d 01 d6 0d 53 53 25 28 41 25 29 3d 31 0d 01 e0 |....SS%(A%)=1...| 00000370 0e 58 25 28 41 25 29 3d 31 30 30 0d 01 ea 11 59 |.X%(A%)=100....Y| 00000380 25 28 41 25 29 3d 41 25 2a 31 37 30 0d 01 f4 05 |%(A%)=A%*170....| 00000390 ed 0d 01 fe 06 ef 35 0d 02 08 09 e6 20 30 2c 30 |......5..... 0,0| 000003a0 0d 02 12 0e e3 20 41 25 3d 31 20 b8 20 34 0d 02 |..... A%=1 . 4..| 000003b0 1c 15 53 4e 24 3d bd 28 26 36 30 2b 41 25 29 2b |..SN$=.(&60+A%)+| 000003c0 22 73 22 0d 02 26 33 c8 99 20 22 4f 53 5f 53 70 |"s"..&3.. "OS_Sp| 000003d0 72 69 74 65 4f 70 22 2c 33 34 2b 32 35 36 2c 53 |riteOp",34+256,S| 000003e0 50 42 4b 25 2c 53 4e 24 2c 58 25 28 41 25 29 2c |PBK%,SN$,X%(A%),| 000003f0 59 25 28 41 25 29 0d 02 30 11 ec 20 30 2c 59 25 |Y%(A%)..0.. 0,Y%| 00000400 28 41 25 29 2b 38 34 0d 02 3a 0b f1 4e 24 28 41 |(A%)+84..:..N$(A| 00000410 25 29 0d 02 44 05 ed 0d 02 4e 0a e6 20 30 2c 34 |%)..D....N.. 0,4| 00000420 38 0d 02 58 18 c8 93 c8 90 20 31 31 33 34 2c 31 |8..X..... 1134,1| 00000430 36 30 2c 32 30 2c 37 30 30 0d 02 62 05 e1 0d 02 |60,20,700..b....| 00000440 6c 04 0d 02 76 0c dd 20 f2 5f 50 6c 6f 74 0d 02 |l...v.. ._Plot..| 00000450 80 08 ea 20 41 25 0d 02 8a 0e e3 20 41 25 3d 31 |... A%..... A%=1| 00000460 20 b8 20 34 0d 02 94 1c 53 4e 24 3d bd 28 26 36 | . 4....SN$=.(&6| 00000470 30 2b 41 25 29 2b c3 28 53 53 25 28 41 25 29 29 |0+A%)+.(SS%(A%))| 00000480 0d 02 9e 33 c8 99 20 22 4f 53 5f 53 70 72 69 74 |...3.. "OS_Sprit| 00000490 65 4f 70 22 2c 33 34 2b 32 35 36 2c 53 50 42 4b |eOp",34+256,SPBK| 000004a0 25 2c 53 4e 24 2c 58 25 28 41 25 29 2c 59 25 28 |%,SN$,X%(A%),Y%(| 000004b0 41 25 29 0d 02 a8 05 ed 0d 02 b2 05 e1 0d 02 bc |A%).............| 000004c0 05 e0 0d 02 c6 04 0d 02 d0 0f dd 20 f2 5f 41 64 |........... ._Ad| 000004d0 76 61 6e 63 65 0d 02 da 08 ea 20 41 25 0d 02 e4 |vance..... A%...| 000004e0 0b e7 20 52 52 25 20 8c 0d 02 ee 0b 41 25 3d b3 |.. RR% .....A%=.| 000004f0 28 34 29 0d 02 f8 0d 58 25 28 41 25 29 2b 3d 34 |(4)....X%(A%)+=4| 00000500 0d 03 02 0e 53 53 25 28 41 25 29 2b 3d 31 0d 03 |....SS%(A%)+=1..| 00000510 0c 1b e7 20 53 53 25 28 41 25 29 3d 35 20 8c 20 |... SS%(A%)=5 . | 00000520 53 53 25 28 41 25 29 3d 31 0d 03 16 09 2a 46 58 |SS%(A%)=1....*FX| 00000530 31 39 0d 03 20 05 cc 0d 03 2a 18 c8 99 20 36 2c |19.. ....*... 6,| 00000540 31 35 30 2c 26 36 30 20 b8 20 2c 2c 20 41 25 0d |150,&60 . ,, A%.| 00000550 03 34 0f 41 25 3d 41 25 20 82 20 26 46 46 0d 03 |.4.A%=A% . &FF..| 00000560 3e 29 e7 20 28 41 25 20 80 20 26 33 29 3c 3e 20 |>). (A% . &3)<> | 00000570 26 33 20 8c 20 58 25 28 31 29 2b 3d 34 3a 53 53 |&3 . X%(1)+=4:SS| 00000580 25 28 31 29 2b 3d 31 0d 03 48 29 e7 20 28 41 25 |%(1)+=1..H). (A%| 00000590 20 80 20 26 43 29 3c 3e 20 26 43 20 8c 20 58 25 | . &C)<> &C . X%| 000005a0 28 32 29 2b 3d 34 3a 53 53 25 28 32 29 2b 3d 31 |(2)+=4:SS%(2)+=1| 000005b0 0d 03 52 2b e7 20 28 41 25 20 80 20 26 33 30 29 |..R+. (A% . &30)| 000005c0 3c 3e 20 26 33 30 20 8c 20 58 25 28 33 29 2b 3d |<> &30 . X%(3)+=| 000005d0 34 3a 53 53 25 28 33 29 2b 3d 31 0d 03 5c 2b e7 |4:SS%(3)+=1..\+.| 000005e0 20 28 41 25 20 80 20 26 43 30 29 3c 3e 20 26 43 | (A% . &C0)<> &C| 000005f0 30 20 8c 20 58 25 28 34 29 2b 3d 34 3a 53 53 25 |0 . X%(4)+=4:SS%| 00000600 28 34 29 2b 3d 31 0d 03 66 0e e3 20 41 25 3d 31 |(4)+=1..f.. A%=1| 00000610 20 b8 20 34 0d 03 70 1b e7 20 53 53 25 28 41 25 | . 4..p.. SS%(A%| 00000620 29 3d 35 20 8c 20 53 53 25 28 41 25 29 3d 31 0d |)=5 . SS%(A%)=1.| 00000630 03 7a 05 ed 0d 03 84 05 cd 0d 03 8e 05 e1 0d 03 |.z..............| 00000640 98 04 0d 03 a2 0d dd 20 f2 5f 49 6e 69 74 53 0d |....... ._InitS.| 00000650 03 ac 12 53 50 42 4b 25 21 30 3d 53 53 49 5a 45 |...SPBK%!0=SSIZE| 00000660 25 0d 03 b6 0e 53 50 42 4b 25 21 38 3d 31 36 0d |%....SPBK%!8=16.| 00000670 03 c0 20 c8 99 20 22 4f 53 5f 53 70 72 69 74 65 |.. .. "OS_Sprite| 00000680 4f 70 22 2c 39 2b 35 31 32 2c 53 50 42 4b 25 0d |Op",9+512,SPBK%.| 00000690 03 ca 1d 53 46 4e 24 3d 22 3c 52 61 63 65 24 44 |...SFN$="<Race$D| 000006a0 49 52 3e 2e 52 61 63 65 53 70 72 22 0d 03 d4 26 |IR>.RaceSpr"...&| 000006b0 c8 99 20 22 4f 53 5f 53 70 72 69 74 65 4f 70 22 |.. "OS_SpriteOp"| 000006c0 2c 31 30 2b 35 31 32 2c 53 50 42 4b 25 2c 53 46 |,10+512,SPBK%,SF| 000006d0 4e 24 0d 03 de 0e e3 20 41 25 3d 31 20 b8 20 34 |N$..... A%=1 . 4| 000006e0 0d 03 e8 0c f3 20 4e 24 28 41 25 29 0d 03 f2 05 |..... N$(A%)....| 000006f0 ed 0d 03 fc 05 e1 0d 04 06 1b dc 20 52 65 64 2c |........... Red,| 00000700 42 6c 75 65 2c 47 72 65 65 6e 2c 59 65 6c 6c 6f |Blue,Green,Yello| 00000710 77 0d ff |w..| 00000713