Home » Archimedes archive » Acorn User » AU 1994-01.adf » !FEMS_App_FEMS_App » sims/FrameStair
sims/FrameStair
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-01.adf » !FEMS_App_FEMS_App |
Filename: | sims/FrameStair |
Read OK: | ✔ |
File size: | 05D9 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
FEMS2 /* frame 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 350 gravity 0,0,-600 time_div 2 solid { create { type compound part { type cuboid:points 3,3,11:size 1in,1in,5in } part { type cuboid:points 3,3,11:size 1in,1in,5in:offset 4in,0,0 } part { type cuboid:points 3,3,11:size 1in,1in,5in:offset 0,4in,0 } part { type cuboid:points 3,3,11:size 1in,1in,5in:offset 4in,4in,0 } part { type cuboid:points 7,3,3:size 3in,1in,1in:offset 1in,0,0 } part { type cuboid:points 7,3,3:size 3in,1in,1in:offset 1in,4in,0 } part { type cuboid:points 3,7,3:size 1in,3in,1in:offset 0,1in,0 } part { type cuboid:points 3,7,3:size 1in,3in,1in:offset 4in,1in,0 } part { type cuboid:points 7,3,3:size 3in,1in,1in:offset 1in,0,4in } part { type cuboid:points 7,3,3:size 3in,1in,1in:offset 1in,4in,4in } part { type cuboid:points 3,7,3:size 1in,3in,1in:offset 0,1in,4in } part { type cuboid:points 3,7,3:size 1in,3in,1in:offset 4in,1in,4in } } translate -2.5in,-2.5in,-2.5in scale .7,.7,.7 nearbonds { spring_const 25: range 2.25 } damping 3 rotate 0,0,23.4 translate 0,7in,8in velocity 0,-2000,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 72 61 6d 65 20 66 |FEMS2./* frame f| 00000010 61 6c 6c 69 6e 67 20 64 6f 77 6e 20 73 74 61 69 |alling down stai| 00000020 72 73 20 2a 2f 0a 0a 72 65 6e 64 65 72 69 6e 67 |rs */..rendering| 00000030 20 7b 0a 20 74 79 70 65 20 64 6f 74 73 0a 20 72 | {. type dots. r| 00000040 65 73 6f 6c 75 74 69 6f 6e 20 33 32 30 2c 32 35 |esolution 320,25| 00000050 36 0a 20 76 69 65 77 20 31 34 30 2c 32 34 20 20 |6. view 140,24 | 00000060 20 20 20 20 20 20 20 20 2f 2a 20 78 2d 79 20 72 | /* x-y r| 00000070 6f 74 61 74 69 6f 6e 2c 20 65 6c 65 76 61 74 69 |otation, elevati| 00000080 6f 6e 20 2a 2f 0a 20 62 61 63 6b 67 72 6f 75 6e |on */. backgroun| 00000090 64 20 62 61 63 6b 20 20 20 20 2f 2a 20 66 6f 72 |d back /* for| 000000a0 20 73 70 65 65 64 2c 20 61 73 73 75 6d 65 20 62 | speed, assume b| 000000b0 61 63 6b 67 72 6f 75 6e 64 20 69 73 20 61 6c 77 |ackground is alw| 000000c0 61 79 73 20 62 65 68 69 6e 64 20 73 6f 6c 69 64 |ays behind solid| 000000d0 20 2a 2f 0a 7d 0a 66 72 61 6d 65 5f 61 69 6d 20 | */.}.frame_aim | 000000e0 33 35 30 0a 67 72 61 76 69 74 79 20 30 2c 30 2c |350.gravity 0,0,| 000000f0 2d 36 30 30 0a 74 69 6d 65 5f 64 69 76 20 32 0a |-600.time_div 2.| 00000100 0a 73 6f 6c 69 64 20 7b 20 20 0a 20 63 72 65 61 |.solid { . crea| 00000110 74 65 20 7b 0a 20 20 74 79 70 65 20 63 6f 6d 70 |te {. type comp| 00000120 6f 75 6e 64 0a 20 20 70 61 72 74 20 7b 20 74 79 |ound. part { ty| 00000130 70 65 20 63 75 62 6f 69 64 3a 70 6f 69 6e 74 73 |pe cuboid:points| 00000140 20 33 2c 33 2c 31 31 3a 73 69 7a 65 20 31 69 6e | 3,3,11:size 1in| 00000150 2c 31 69 6e 2c 35 69 6e 20 7d 0a 20 20 70 61 72 |,1in,5in }. par| 00000160 74 20 7b 20 74 79 70 65 20 63 75 62 6f 69 64 3a |t { type cuboid:| 00000170 70 6f 69 6e 74 73 20 33 2c 33 2c 31 31 3a 73 69 |points 3,3,11:si| 00000180 7a 65 20 31 69 6e 2c 31 69 6e 2c 35 69 6e 3a 6f |ze 1in,1in,5in:o| 00000190 66 66 73 65 74 20 34 69 6e 2c 30 2c 30 20 7d 0a |ffset 4in,0,0 }.| 000001a0 20 20 70 61 72 74 20 7b 20 74 79 70 65 20 63 75 | part { type cu| 000001b0 62 6f 69 64 3a 70 6f 69 6e 74 73 20 33 2c 33 2c |boid:points 3,3,| 000001c0 31 31 3a 73 69 7a 65 20 31 69 6e 2c 31 69 6e 2c |11:size 1in,1in,| 000001d0 35 69 6e 3a 6f 66 66 73 65 74 20 30 2c 34 69 6e |5in:offset 0,4in| 000001e0 2c 30 20 7d 0a 20 20 70 61 72 74 20 7b 20 74 79 |,0 }. part { ty| 000001f0 70 65 20 63 75 62 6f 69 64 3a 70 6f 69 6e 74 73 |pe cuboid:points| 00000200 20 33 2c 33 2c 31 31 3a 73 69 7a 65 20 31 69 6e | 3,3,11:size 1in| 00000210 2c 31 69 6e 2c 35 69 6e 3a 6f 66 66 73 65 74 20 |,1in,5in:offset | 00000220 34 69 6e 2c 34 69 6e 2c 30 20 7d 0a 20 20 70 61 |4in,4in,0 }. pa| 00000230 72 74 20 7b 20 74 79 70 65 20 63 75 62 6f 69 64 |rt { type cuboid| 00000240 3a 70 6f 69 6e 74 73 20 37 2c 33 2c 33 3a 73 69 |:points 7,3,3:si| 00000250 7a 65 20 33 69 6e 2c 31 69 6e 2c 31 69 6e 3a 6f |ze 3in,1in,1in:o| 00000260 66 66 73 65 74 20 31 69 6e 2c 30 2c 30 20 7d 0a |ffset 1in,0,0 }.| 00000270 20 20 70 61 72 74 20 7b 20 74 79 70 65 20 63 75 | part { type cu| 00000280 62 6f 69 64 3a 70 6f 69 6e 74 73 20 37 2c 33 2c |boid:points 7,3,| 00000290 33 3a 73 69 7a 65 20 33 69 6e 2c 31 69 6e 2c 31 |3:size 3in,1in,1| 000002a0 69 6e 3a 6f 66 66 73 65 74 20 31 69 6e 2c 34 69 |in:offset 1in,4i| 000002b0 6e 2c 30 20 7d 0a 20 20 70 61 72 74 20 7b 20 74 |n,0 }. part { t| 000002c0 79 70 65 20 63 75 62 6f 69 64 3a 70 6f 69 6e 74 |ype cuboid:point| 000002d0 73 20 33 2c 37 2c 33 3a 73 69 7a 65 20 31 69 6e |s 3,7,3:size 1in| 000002e0 2c 33 69 6e 2c 31 69 6e 3a 6f 66 66 73 65 74 20 |,3in,1in:offset | 000002f0 30 2c 31 69 6e 2c 30 20 7d 0a 20 20 70 61 72 74 |0,1in,0 }. part| 00000300 20 7b 20 74 79 70 65 20 63 75 62 6f 69 64 3a 70 | { type cuboid:p| 00000310 6f 69 6e 74 73 20 33 2c 37 2c 33 3a 73 69 7a 65 |oints 3,7,3:size| 00000320 20 31 69 6e 2c 33 69 6e 2c 31 69 6e 3a 6f 66 66 | 1in,3in,1in:off| 00000330 73 65 74 20 34 69 6e 2c 31 69 6e 2c 30 20 7d 0a |set 4in,1in,0 }.| 00000340 20 20 70 61 72 74 20 7b 20 74 79 70 65 20 63 75 | part { type cu| 00000350 62 6f 69 64 3a 70 6f 69 6e 74 73 20 37 2c 33 2c |boid:points 7,3,| 00000360 33 3a 73 69 7a 65 20 33 69 6e 2c 31 69 6e 2c 31 |3:size 3in,1in,1| 00000370 69 6e 3a 6f 66 66 73 65 74 20 31 69 6e 2c 30 2c |in:offset 1in,0,| 00000380 34 69 6e 20 7d 0a 20 20 70 61 72 74 20 7b 20 74 |4in }. part { t| 00000390 79 70 65 20 63 75 62 6f 69 64 3a 70 6f 69 6e 74 |ype cuboid:point| 000003a0 73 20 37 2c 33 2c 33 3a 73 69 7a 65 20 33 69 6e |s 7,3,3:size 3in| 000003b0 2c 31 69 6e 2c 31 69 6e 3a 6f 66 66 73 65 74 20 |,1in,1in:offset | 000003c0 31 69 6e 2c 34 69 6e 2c 34 69 6e 20 7d 0a 20 20 |1in,4in,4in }. | 000003d0 70 61 72 74 20 7b 20 74 79 70 65 20 63 75 62 6f |part { type cubo| 000003e0 69 64 3a 70 6f 69 6e 74 73 20 33 2c 37 2c 33 3a |id:points 3,7,3:| 000003f0 73 69 7a 65 20 31 69 6e 2c 33 69 6e 2c 31 69 6e |size 1in,3in,1in| 00000400 3a 6f 66 66 73 65 74 20 30 2c 31 69 6e 2c 34 69 |:offset 0,1in,4i| 00000410 6e 20 7d 0a 20 20 70 61 72 74 20 7b 20 74 79 70 |n }. part { typ| 00000420 65 20 63 75 62 6f 69 64 3a 70 6f 69 6e 74 73 20 |e cuboid:points | 00000430 33 2c 37 2c 33 3a 73 69 7a 65 20 31 69 6e 2c 33 |3,7,3:size 1in,3| 00000440 69 6e 2c 31 69 6e 3a 6f 66 66 73 65 74 20 34 69 |in,1in:offset 4i| 00000450 6e 2c 31 69 6e 2c 34 69 6e 20 7d 0a 20 7d 20 20 |n,1in,4in }. } | 00000460 0a 20 74 72 61 6e 73 6c 61 74 65 20 2d 32 2e 35 |. translate -2.5| 00000470 69 6e 2c 2d 32 2e 35 69 6e 2c 2d 32 2e 35 69 6e |in,-2.5in,-2.5in| 00000480 20 0a 20 73 63 61 6c 65 20 2e 37 2c 2e 37 2c 2e | . scale .7,.7,.| 00000490 37 0a 20 6e 65 61 72 62 6f 6e 64 73 20 7b 20 73 |7. nearbonds { s| 000004a0 70 72 69 6e 67 5f 63 6f 6e 73 74 20 32 35 3a 20 |pring_const 25: | 000004b0 72 61 6e 67 65 20 32 2e 32 35 20 7d 0a 20 64 61 |range 2.25 }. da| 000004c0 6d 70 69 6e 67 20 33 0a 20 72 6f 74 61 74 65 20 |mping 3. rotate | 000004d0 30 2c 30 2c 32 33 2e 34 20 20 20 20 20 20 0a 20 |0,0,23.4 . | 000004e0 74 72 61 6e 73 6c 61 74 65 20 30 2c 37 69 6e 2c |translate 0,7in,| 000004f0 38 69 6e 20 0a 20 76 65 6c 6f 63 69 74 79 20 30 |8in . velocity 0| 00000500 2c 2d 32 30 30 30 2c 30 0a 7d 0a 0a 62 61 63 6b |,-2000,0.}..back| 00000510 67 72 6f 75 6e 64 20 7b 0a 20 63 72 65 61 74 65 |ground {. create| 00000520 20 7b 0a 20 20 74 79 70 65 20 73 74 61 69 72 73 | {. type stairs| 00000530 0a 20 20 70 6f 69 6e 74 73 20 31 33 2c 31 31 2c |. points 13,11,| 00000540 33 20 20 20 20 20 20 20 20 2f 2a 20 70 6f 69 6e |3 /* poin| 00000550 74 73 20 69 6e 20 77 69 64 74 68 2c 20 6e 6f 2e |ts in width, no.| 00000560 20 6f 66 20 73 74 65 70 73 2c 20 70 74 73 20 69 | of steps, pts i| 00000570 6e 20 61 20 73 74 65 70 20 2a 2f 0a 20 20 73 69 |n a step */. si| 00000580 7a 65 20 31 34 69 6e 2c 32 69 6e 2c 32 2e 33 33 |ze 14in,2in,2.33| 00000590 69 6e 20 20 2f 2a 20 77 69 64 74 68 2c 20 73 74 |in /* width, st| 000005a0 65 70 20 68 65 69 67 68 74 2c 20 73 74 65 70 20 |ep height, step | 000005b0 64 65 70 74 68 20 2a 2f 0a 20 7d 0a 20 74 72 61 |depth */. }. tra| 000005c0 6e 73 6c 61 74 65 20 30 2c 2d 31 31 2e 36 35 69 |nslate 0,-11.65i| 000005d0 6e 2c 2d 31 30 69 6e 0a 7d |n,-10in.}| 000005d9