Home » Archimedes archive » Acorn User » AU 1994-02.adf » !FEMS_App_FEMS_App » sims/RainStair
sims/RainStair
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 User » AU 1994-02.adf » !FEMS_App_FEMS_App |
Filename: | sims/RainStair |
Read OK: | ✔ |
File size: | 03A9 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
FEMS2 /* several spheroids dropped on stairs */ rendering { type lines resolution 320,256 view 140,24 /* x-y rotation, elevation */ background back /* for speed, assume background is always behind solid */ } frame_aim 600 gravity 0,0,-600 time_div 1 solid { create { type solid_sphere:points 4,3:size 1.5in } nearbonds { spring_const 30: range 2.25 } air_damp 4 : repel 30 : translate 0,7in,8in } solid { create { type solid_sphere:points 4,3:size 1.5in } nearbonds { spring_const 30: range 2.25 } air_damp 4 : repel 30 : translate .5in,7in,12in } solid { create { type solid_sphere:points 4,3:size 1.5in } nearbonds { spring_const 30: range 2.25 } air_damp 4 : repel 30 : translate 0,7in,16in } background { create { type stairs points 13,11,3 /* points in width, no. of steps, pts in a step */ size 14in,2in,2.33in /* width, step height, step depth */ } translate 0,-11.65in,-10in }
00000000 46 45 4d 53 32 0a 2f 2a 20 73 65 76 65 72 61 6c |FEMS2./* several| 00000010 20 73 70 68 65 72 6f 69 64 73 20 64 72 6f 70 70 | spheroids dropp| 00000020 65 64 20 6f 6e 20 73 74 61 69 72 73 20 2a 2f 0a |ed on stairs */.| 00000030 0a 72 65 6e 64 65 72 69 6e 67 20 7b 0a 20 74 79 |.rendering {. ty| 00000040 70 65 20 6c 69 6e 65 73 0a 20 72 65 73 6f 6c 75 |pe lines. resolu| 00000050 74 69 6f 6e 20 33 32 30 2c 32 35 36 0a 20 76 69 |tion 320,256. vi| 00000060 65 77 20 31 34 30 2c 32 34 20 20 20 20 20 20 20 |ew 140,24 | 00000070 20 20 20 2f 2a 20 78 2d 79 20 72 6f 74 61 74 69 | /* x-y rotati| 00000080 6f 6e 2c 20 65 6c 65 76 61 74 69 6f 6e 20 2a 2f |on, elevation */| 00000090 0a 20 62 61 63 6b 67 72 6f 75 6e 64 20 62 61 63 |. background bac| 000000a0 6b 20 20 20 20 2f 2a 20 66 6f 72 20 73 70 65 65 |k /* for spee| 000000b0 64 2c 20 61 73 73 75 6d 65 20 62 61 63 6b 67 72 |d, assume backgr| 000000c0 6f 75 6e 64 20 69 73 20 61 6c 77 61 79 73 20 62 |ound is always b| 000000d0 65 68 69 6e 64 20 73 6f 6c 69 64 20 2a 2f 0a 7d |ehind solid */.}| 000000e0 0a 66 72 61 6d 65 5f 61 69 6d 20 36 30 30 0a 67 |.frame_aim 600.g| 000000f0 72 61 76 69 74 79 20 30 2c 30 2c 2d 36 30 30 0a |ravity 0,0,-600.| 00000100 74 69 6d 65 5f 64 69 76 20 31 0a 0a 73 6f 6c 69 |time_div 1..soli| 00000110 64 20 7b 20 20 0a 20 63 72 65 61 74 65 20 7b 20 |d { . create { | 00000120 74 79 70 65 20 73 6f 6c 69 64 5f 73 70 68 65 72 |type solid_spher| 00000130 65 3a 70 6f 69 6e 74 73 20 34 2c 33 3a 73 69 7a |e:points 4,3:siz| 00000140 65 20 31 2e 35 69 6e 20 7d 0a 20 6e 65 61 72 62 |e 1.5in }. nearb| 00000150 6f 6e 64 73 20 7b 20 73 70 72 69 6e 67 5f 63 6f |onds { spring_co| 00000160 6e 73 74 20 33 30 3a 20 72 61 6e 67 65 20 32 2e |nst 30: range 2.| 00000170 32 35 20 7d 0a 20 61 69 72 5f 64 61 6d 70 20 34 |25 }. air_damp 4| 00000180 20 3a 20 72 65 70 65 6c 20 33 30 20 3a 20 74 72 | : repel 30 : tr| 00000190 61 6e 73 6c 61 74 65 20 30 2c 37 69 6e 2c 38 69 |anslate 0,7in,8i| 000001a0 6e 0a 7d 0a 0a 73 6f 6c 69 64 20 7b 20 20 0a 20 |n.}..solid { . | 000001b0 63 72 65 61 74 65 20 7b 20 74 79 70 65 20 73 6f |create { type so| 000001c0 6c 69 64 5f 73 70 68 65 72 65 3a 70 6f 69 6e 74 |lid_sphere:point| 000001d0 73 20 34 2c 33 3a 73 69 7a 65 20 31 2e 35 69 6e |s 4,3:size 1.5in| 000001e0 20 7d 0a 20 6e 65 61 72 62 6f 6e 64 73 20 7b 20 | }. nearbonds { | 000001f0 73 70 72 69 6e 67 5f 63 6f 6e 73 74 20 33 30 3a |spring_const 30:| 00000200 20 72 61 6e 67 65 20 32 2e 32 35 20 7d 0a 20 61 | range 2.25 }. a| 00000210 69 72 5f 64 61 6d 70 20 34 20 3a 20 72 65 70 65 |ir_damp 4 : repe| 00000220 6c 20 33 30 20 3a 20 74 72 61 6e 73 6c 61 74 65 |l 30 : translate| 00000230 20 2e 35 69 6e 2c 37 69 6e 2c 31 32 69 6e 0a 7d | .5in,7in,12in.}| 00000240 0a 0a 73 6f 6c 69 64 20 7b 20 20 0a 20 63 72 65 |..solid { . cre| 00000250 61 74 65 20 7b 20 74 79 70 65 20 73 6f 6c 69 64 |ate { type solid| 00000260 5f 73 70 68 65 72 65 3a 70 6f 69 6e 74 73 20 34 |_sphere:points 4| 00000270 2c 33 3a 73 69 7a 65 20 31 2e 35 69 6e 20 7d 0a |,3:size 1.5in }.| 00000280 20 6e 65 61 72 62 6f 6e 64 73 20 7b 20 73 70 72 | nearbonds { spr| 00000290 69 6e 67 5f 63 6f 6e 73 74 20 33 30 3a 20 72 61 |ing_const 30: ra| 000002a0 6e 67 65 20 32 2e 32 35 20 7d 0a 20 61 69 72 5f |nge 2.25 }. air_| 000002b0 64 61 6d 70 20 34 20 3a 20 72 65 70 65 6c 20 33 |damp 4 : repel 3| 000002c0 30 20 3a 20 74 72 61 6e 73 6c 61 74 65 20 30 2c |0 : translate 0,| 000002d0 37 69 6e 2c 31 36 69 6e 0a 7d 0a 0a 62 61 63 6b |7in,16in.}..back| 000002e0 67 72 6f 75 6e 64 20 7b 0a 20 63 72 65 61 74 65 |ground {. create| 000002f0 20 7b 0a 20 20 74 79 70 65 20 73 74 61 69 72 73 | {. type stairs| 00000300 0a 20 20 70 6f 69 6e 74 73 20 31 33 2c 31 31 2c |. points 13,11,| 00000310 33 20 20 20 20 20 20 20 20 2f 2a 20 70 6f 69 6e |3 /* poin| 00000320 74 73 20 69 6e 20 77 69 64 74 68 2c 20 6e 6f 2e |ts in width, no.| 00000330 20 6f 66 20 73 74 65 70 73 2c 20 70 74 73 20 69 | of steps, pts i| 00000340 6e 20 61 20 73 74 65 70 20 2a 2f 0a 20 20 73 69 |n a step */. si| 00000350 7a 65 20 31 34 69 6e 2c 32 69 6e 2c 32 2e 33 33 |ze 14in,2in,2.33| 00000360 69 6e 20 20 2f 2a 20 77 69 64 74 68 2c 20 73 74 |in /* width, st| 00000370 65 70 20 68 65 69 67 68 74 2c 20 73 74 65 70 20 |ep height, step | 00000380 64 65 70 74 68 20 2a 2f 0a 20 7d 0a 20 74 72 61 |depth */. }. tra| 00000390 6e 73 6c 61 74 65 20 30 2c 2d 31 31 2e 36 35 69 |nslate 0,-11.65i| 000003a0 6e 2c 2d 31 30 69 6e 0a 7d |n,-10in.}| 000003a9