Home » Archimedes archive » Acorn User » AU 1994-02.adf » !FEMS_App_FEMS_App » sims/FlopCube
sims/FlopCube
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/FlopCube |
Read OK: | ✔ |
File size: | 02C0 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
FEMS2 /* floppy cube falling down stairs */ rendering { type dots resolution 320,256 view 140,24 /* x-y rotation, elevation */ background back /* for speed, assume background is always behind solid */ } frame_aim 280 gravity 0,0,-500 time_div 1 solid { create { type cube points 8 size 3.5in } nearbonds { spring_const 30: range 2.25 } air_damp 3 /* stop the cube from moving too fast */ rotate 0,0,23.4 translate 0,7in,8in velocity 0,-1.1ips,0 } 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 66 6c 6f 70 70 79 20 |FEMS2./* floppy | 00000010 63 75 62 65 20 66 61 6c 6c 69 6e 67 20 64 6f 77 |cube falling dow| 00000020 6e 20 73 74 61 69 72 73 20 2a 2f 0a 0a 72 65 6e |n stairs */..ren| 00000030 64 65 72 69 6e 67 20 7b 0a 20 74 79 70 65 20 64 |dering {. type d| 00000040 6f 74 73 0a 20 72 65 73 6f 6c 75 74 69 6f 6e 20 |ots. resolution | 00000050 33 32 30 2c 32 35 36 0a 20 76 69 65 77 20 31 34 |320,256. view 14| 00000060 30 2c 32 34 20 20 20 20 20 20 20 20 20 20 2f 2a |0,24 /*| 00000070 20 78 2d 79 20 72 6f 74 61 74 69 6f 6e 2c 20 65 | x-y rotation, e| 00000080 6c 65 76 61 74 69 6f 6e 20 2a 2f 0a 20 62 61 63 |levation */. bac| 00000090 6b 67 72 6f 75 6e 64 20 62 61 63 6b 20 20 20 20 |kground back | 000000a0 2f 2a 20 66 6f 72 20 73 70 65 65 64 2c 20 61 73 |/* for speed, as| 000000b0 73 75 6d 65 20 62 61 63 6b 67 72 6f 75 6e 64 20 |sume background | 000000c0 69 73 20 61 6c 77 61 79 73 20 62 65 68 69 6e 64 |is always behind| 000000d0 20 73 6f 6c 69 64 20 2a 2f 0a 7d 0a 66 72 61 6d | solid */.}.fram| 000000e0 65 5f 61 69 6d 20 32 38 30 0a 67 72 61 76 69 74 |e_aim 280.gravit| 000000f0 79 20 30 2c 30 2c 2d 35 30 30 0a 74 69 6d 65 5f |y 0,0,-500.time_| 00000100 64 69 76 20 31 0a 0a 73 6f 6c 69 64 20 7b 20 20 |div 1..solid { | 00000110 0a 20 63 72 65 61 74 65 20 7b 0a 20 20 74 79 70 |. create {. typ| 00000120 65 20 63 75 62 65 0a 20 20 70 6f 69 6e 74 73 20 |e cube. points | 00000130 38 0a 20 20 73 69 7a 65 20 33 2e 35 69 6e 0a 20 |8. size 3.5in. | 00000140 7d 0a 20 6e 65 61 72 62 6f 6e 64 73 20 7b 20 73 |}. nearbonds { s| 00000150 70 72 69 6e 67 5f 63 6f 6e 73 74 20 33 30 3a 20 |pring_const 30: | 00000160 72 61 6e 67 65 20 32 2e 32 35 20 7d 0a 20 61 69 |range 2.25 }. ai| 00000170 72 5f 64 61 6d 70 20 33 20 20 20 20 20 20 20 20 |r_damp 3 | 00000180 20 20 20 20 2f 2a 20 73 74 6f 70 20 74 68 65 20 | /* stop the | 00000190 63 75 62 65 20 66 72 6f 6d 20 6d 6f 76 69 6e 67 |cube from moving| 000001a0 20 74 6f 6f 20 66 61 73 74 20 2a 2f 0a 20 72 6f | too fast */. ro| 000001b0 74 61 74 65 20 30 2c 30 2c 32 33 2e 34 20 20 20 |tate 0,0,23.4 | 000001c0 20 20 20 0a 20 74 72 61 6e 73 6c 61 74 65 20 30 | . translate 0| 000001d0 2c 37 69 6e 2c 38 69 6e 20 0a 20 76 65 6c 6f 63 |,7in,8in . veloc| 000001e0 69 74 79 20 30 2c 2d 31 2e 31 69 70 73 2c 30 0a |ity 0,-1.1ips,0.| 000001f0 7d 0a 0a 62 61 63 6b 67 72 6f 75 6e 64 20 7b 0a |}..background {.| 00000200 20 63 72 65 61 74 65 20 7b 0a 20 20 74 79 70 65 | create {. type| 00000210 20 73 74 61 69 72 73 0a 20 20 70 6f 69 6e 74 73 | stairs. points| 00000220 20 31 33 2c 31 31 2c 33 20 20 20 20 20 20 20 20 | 13,11,3 | 00000230 2f 2a 20 70 6f 69 6e 74 73 20 69 6e 20 77 69 64 |/* points in wid| 00000240 74 68 2c 20 6e 6f 2e 20 6f 66 20 73 74 65 70 73 |th, no. of steps| 00000250 2c 20 70 74 73 20 69 6e 20 61 20 73 74 65 70 20 |, pts in a step | 00000260 2a 2f 0a 20 20 73 69 7a 65 20 31 34 69 6e 2c 32 |*/. size 14in,2| 00000270 69 6e 2c 32 2e 33 33 69 6e 20 20 2f 2a 20 77 69 |in,2.33in /* wi| 00000280 64 74 68 2c 20 73 74 65 70 20 68 65 69 67 68 74 |dth, step height| 00000290 2c 20 73 74 65 70 20 64 65 70 74 68 20 2a 2f 0a |, step depth */.| 000002a0 20 7d 0a 20 74 72 61 6e 73 6c 61 74 65 20 30 2c | }. translate 0,| 000002b0 2d 31 31 2e 36 35 69 6e 2c 2d 31 30 69 6e 0a 7d |-11.65in,-10in.}| 000002c0