Home » Archimedes archive » Archimedes World » AW-1996-01-Disc2.adf » !Go-GoDemo_Go-GoDemo » Examples/GoGoGolf
Examples/GoGoGolf
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 » Archimedes World » AW-1996-01-Disc2.adf » !Go-GoDemo_Go-GoDemo |
Filename: | Examples/GoGoGolf |
Read OK: | ✔ |
File size: | 030A bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
Scene GolfCourse Pointer Golfer Tee1 [Type your commands here ... ] [ eg. Hit direction,distance ] [ ie. Hit 10,45 ] Check [ this line must come last ]#PROCEDURE CheckHole1 [hole 1 = -54, 32 ] if x>-57 if x<-51 if y>29 if y<35 holed #PROCEDURE CheckHole2 [ hole 2 = 18, -48 ] if x>15 if x<21 if y>-51 if y<-45 holed #PROCEDURE CheckHole3 [ hole 3 = 66, 48 ] if x>63 if x<69 if y>45 if y<51 holed #PROCEDURE Check CheckHole1 CheckHole2 CheckHole3 #PROCEDURE Tee1 Check JumpTo -69,-60 TurnTo 0 #PROCEDURE Tee2 Check JumpTo -22,48 TurnTo 180 #PROCEDURE Tee3 Check JumpTo 62,-56 TurnTo 325 #PROCEDURE Hit turn,distance TurnTo turn Pointer Golfball Play Drive Style Dotted Ink red Forward distance Pointer Golfer #PROCEDURE Holed play holeout wait 2 play cheer
00000000 53 63 65 6e 65 20 47 6f 6c 66 43 6f 75 72 73 65 |Scene GolfCourse| 00000010 0a 50 6f 69 6e 74 65 72 20 47 6f 6c 66 65 72 0a |.Pointer Golfer.| 00000020 54 65 65 31 0a 5b 54 79 70 65 20 79 6f 75 72 20 |Tee1.[Type your | 00000030 63 6f 6d 6d 61 6e 64 73 20 68 65 72 65 20 2e 2e |commands here ..| 00000040 2e 20 5d 0a 5b 20 65 67 2e 20 48 69 74 20 64 69 |. ].[ eg. Hit di| 00000050 72 65 63 74 69 6f 6e 2c 64 69 73 74 61 6e 63 65 |rection,distance| 00000060 20 5d 0a 5b 20 69 65 2e 20 48 69 74 20 31 30 2c | ].[ ie. Hit 10,| 00000070 34 35 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |45 | 00000080 5d 0a 0a 0a 0a 0a 43 68 65 63 6b 20 5b 20 74 68 |].....Check [ th| 00000090 69 73 20 6c 69 6e 65 20 6d 75 73 74 20 63 6f 6d |is line must com| 000000a0 65 20 6c 61 73 74 20 5d 23 50 52 4f 43 45 44 55 |e last ]#PROCEDU| 000000b0 52 45 20 43 68 65 63 6b 48 6f 6c 65 31 0a 5b 68 |RE CheckHole1.[h| 000000c0 6f 6c 65 20 31 20 3d 20 2d 35 34 2c 20 33 32 20 |ole 1 = -54, 32 | 000000d0 5d 0a 69 66 20 78 3e 2d 35 37 20 69 66 20 78 3c |].if x>-57 if x<| 000000e0 2d 35 31 20 69 66 20 79 3e 32 39 20 69 66 20 79 |-51 if y>29 if y| 000000f0 3c 33 35 20 68 6f 6c 65 64 0a 0a 23 50 52 4f 43 |<35 holed..#PROC| 00000100 45 44 55 52 45 20 43 68 65 63 6b 48 6f 6c 65 32 |EDURE CheckHole2| 00000110 0a 5b 20 68 6f 6c 65 20 32 20 3d 20 31 38 2c 20 |.[ hole 2 = 18, | 00000120 2d 34 38 20 5d 0a 69 66 20 78 3e 31 35 20 69 66 |-48 ].if x>15 if| 00000130 20 78 3c 32 31 20 69 66 20 79 3e 2d 35 31 20 69 | x<21 if y>-51 i| 00000140 66 20 79 3c 2d 34 35 20 68 6f 6c 65 64 0a 0a 0a |f y<-45 holed...| 00000150 23 50 52 4f 43 45 44 55 52 45 20 43 68 65 63 6b |#PROCEDURE Check| 00000160 48 6f 6c 65 33 0a 5b 20 68 6f 6c 65 20 33 20 3d |Hole3.[ hole 3 =| 00000170 20 36 36 2c 20 34 38 20 5d 0a 69 66 20 78 3e 36 | 66, 48 ].if x>6| 00000180 33 20 69 66 20 78 3c 36 39 20 69 66 20 79 3e 34 |3 if x<69 if y>4| 00000190 35 20 69 66 20 79 3c 35 31 20 68 6f 6c 65 64 0a |5 if y<51 holed.| 000001a0 0a 0a 23 50 52 4f 43 45 44 55 52 45 20 43 68 65 |..#PROCEDURE Che| 000001b0 63 6b 0a 43 68 65 63 6b 48 6f 6c 65 31 0a 43 68 |ck.CheckHole1.Ch| 000001c0 65 63 6b 48 6f 6c 65 32 0a 43 68 65 63 6b 48 6f |eckHole2.CheckHo| 000001d0 6c 65 33 0a 23 50 52 4f 43 45 44 55 52 45 20 54 |le3.#PROCEDURE T| 000001e0 65 65 31 0a 43 68 65 63 6b 0a 4a 75 6d 70 54 6f |ee1.Check.JumpTo| 000001f0 20 2d 36 39 2c 2d 36 30 0a 54 75 72 6e 54 6f 20 | -69,-60.TurnTo | 00000200 30 0a 23 50 52 4f 43 45 44 55 52 45 20 54 65 65 |0.#PROCEDURE Tee| 00000210 32 0a 43 68 65 63 6b 0a 4a 75 6d 70 54 6f 20 2d |2.Check.JumpTo -| 00000220 32 32 2c 34 38 0a 54 75 72 6e 54 6f 20 31 38 30 |22,48.TurnTo 180| 00000230 0a 23 50 52 4f 43 45 44 55 52 45 20 54 65 65 33 |.#PROCEDURE Tee3| 00000240 0a 43 68 65 63 6b 0a 4a 75 6d 70 54 6f 20 36 32 |.Check.JumpTo 62| 00000250 2c 2d 35 36 0a 54 75 72 6e 54 6f 20 33 32 35 0a |,-56.TurnTo 325.| 00000260 23 50 52 4f 43 45 44 55 52 45 20 48 69 74 20 74 |#PROCEDURE Hit t| 00000270 75 72 6e 2c 64 69 73 74 61 6e 63 65 0a 54 75 72 |urn,distance.Tur| 00000280 6e 54 6f 20 74 75 72 6e 0a 50 6f 69 6e 74 65 72 |nTo turn.Pointer| 00000290 20 47 6f 6c 66 62 61 6c 6c 0a 50 6c 61 79 20 44 | Golfball.Play D| 000002a0 72 69 76 65 0a 53 74 79 6c 65 20 44 6f 74 74 65 |rive.Style Dotte| 000002b0 64 0a 49 6e 6b 20 72 65 64 0a 46 6f 72 77 61 72 |d.Ink red.Forwar| 000002c0 64 20 64 69 73 74 61 6e 63 65 0a 50 6f 69 6e 74 |d distance.Point| 000002d0 65 72 20 47 6f 6c 66 65 72 0a 23 50 52 4f 43 45 |er Golfer.#PROCE| 000002e0 44 55 52 45 20 48 6f 6c 65 64 0a 70 6c 61 79 20 |DURE Holed.play | 000002f0 68 6f 6c 65 6f 75 74 0a 77 61 69 74 20 32 0a 70 |holeout.wait 2.p| 00000300 6c 61 79 20 63 68 65 65 72 0a |lay cheer.| 0000030a