Home » Archimedes archive » Acorn User » AU 1998-05 A.adf » EasyAnim » !EasyAnim/Resources/Format
!EasyAnim/Resources/Format
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 1998-05 A.adf » EasyAnim |
Filename: | !EasyAnim/Resources/Format |
Read OK: | ✔ |
File size: | 04FA bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
File format ----------- Version 105 The file �Options� within an animation holds all the details of the animation: Byte Description 0 File version number (105) 1 Speed in centiseconds between frames 2 Number of frames (maximum 768) 3 Scale (%) 4 Grid size (pixels) 5+ Animation title BUG: If more than 256 frames exist, the one byte allocated would not be suitable to hold the number of frames. If the version number is not equal to the current version number, then an error should be produced. I will attempt to avoid changing the file version number or if there is a very major change then I might provide backwards compatibility. A frame �n� is stored in �Frames.n DIV 10.n�. So frame 23 would be stored in �Frames.2.23�. All frames are simply LZW-compressed sprite files with one 150x150 mode 13 sprite named �frame� which is plotted with OS_SpriteOp 52. Previous version numbers are: Version 100 Options stored in �0� file 101 Renamed �0� to �Options� 102 Added file version number 103 Included grid size & scale 104 Extended max. frames from 76 to 768 105 Moved �Options� out of �Frames� :-)
00000000 0a 46 69 6c 65 20 66 6f 72 6d 61 74 0a 2d 2d 2d |.File format.---| 00000010 2d 2d 2d 2d 2d 2d 2d 2d 0a 56 65 72 73 69 6f 6e |--------.Version| 00000020 20 31 30 35 0a 0a 54 68 65 20 66 69 6c 65 20 90 | 105..The file .| 00000030 4f 70 74 69 6f 6e 73 91 20 77 69 74 68 69 6e 20 |Options. within | 00000040 61 6e 20 61 6e 69 6d 61 74 69 6f 6e 20 68 6f 6c |an animation hol| 00000050 64 73 20 61 6c 6c 20 74 68 65 20 64 65 74 61 69 |ds all the detai| 00000060 6c 73 20 6f 66 20 74 68 65 0a 61 6e 69 6d 61 74 |ls of the.animat| 00000070 69 6f 6e 3a 0a 0a 20 20 20 20 20 20 20 20 42 79 |ion:.. By| 00000080 74 65 20 20 20 20 44 65 73 63 72 69 70 74 69 6f |te Descriptio| 00000090 6e 0a 20 20 20 20 20 20 20 20 20 30 20 20 20 20 |n. 0 | 000000a0 20 20 46 69 6c 65 20 76 65 72 73 69 6f 6e 20 6e | File version n| 000000b0 75 6d 62 65 72 20 28 31 30 35 29 0a 20 20 20 20 |umber (105). | 000000c0 20 20 20 20 20 31 20 20 20 20 20 20 53 70 65 65 | 1 Spee| 000000d0 64 20 69 6e 20 63 65 6e 74 69 73 65 63 6f 6e 64 |d in centisecond| 000000e0 73 20 62 65 74 77 65 65 6e 20 66 72 61 6d 65 73 |s between frames| 000000f0 0a 20 20 20 20 20 20 20 20 20 32 20 20 20 20 20 |. 2 | 00000100 20 4e 75 6d 62 65 72 20 6f 66 20 66 72 61 6d 65 | Number of frame| 00000110 73 20 28 6d 61 78 69 6d 75 6d 20 37 36 38 29 0a |s (maximum 768).| 00000120 20 20 20 20 20 20 20 20 20 33 20 20 20 20 20 20 | 3 | 00000130 53 63 61 6c 65 20 28 25 29 0a 20 20 20 20 20 20 |Scale (%). | 00000140 20 20 20 34 20 20 20 20 20 20 47 72 69 64 20 73 | 4 Grid s| 00000150 69 7a 65 20 28 70 69 78 65 6c 73 29 0a 20 20 20 |ize (pixels). | 00000160 20 20 20 20 20 20 35 2b 20 20 20 20 20 41 6e 69 | 5+ Ani| 00000170 6d 61 74 69 6f 6e 20 74 69 74 6c 65 0a 0a 42 55 |mation title..BU| 00000180 47 3a 20 49 66 20 6d 6f 72 65 20 74 68 61 6e 20 |G: If more than | 00000190 32 35 36 20 66 72 61 6d 65 73 20 65 78 69 73 74 |256 frames exist| 000001a0 2c 20 74 68 65 20 6f 6e 65 20 62 79 74 65 20 61 |, the one byte a| 000001b0 6c 6c 6f 63 61 74 65 64 20 77 6f 75 6c 64 20 6e |llocated would n| 000001c0 6f 74 0a 62 65 20 73 75 69 74 61 62 6c 65 20 74 |ot.be suitable t| 000001d0 6f 20 68 6f 6c 64 20 74 68 65 20 6e 75 6d 62 65 |o hold the numbe| 000001e0 72 20 6f 66 20 66 72 61 6d 65 73 2e 0a 0a 49 66 |r of frames...If| 000001f0 20 74 68 65 20 76 65 72 73 69 6f 6e 20 6e 75 6d | the version num| 00000200 62 65 72 20 69 73 20 6e 6f 74 20 65 71 75 61 6c |ber is not equal| 00000210 20 74 6f 20 74 68 65 20 63 75 72 72 65 6e 74 20 | to the current | 00000220 76 65 72 73 69 6f 6e 20 6e 75 6d 62 65 72 2c 20 |version number, | 00000230 74 68 65 6e 20 61 6e 0a 65 72 72 6f 72 20 73 68 |then an.error sh| 00000240 6f 75 6c 64 20 62 65 20 70 72 6f 64 75 63 65 64 |ould be produced| 00000250 2e 20 49 20 77 69 6c 6c 20 61 74 74 65 6d 70 74 |. I will attempt| 00000260 20 74 6f 20 61 76 6f 69 64 20 63 68 61 6e 67 69 | to avoid changi| 00000270 6e 67 20 74 68 65 20 66 69 6c 65 20 76 65 72 73 |ng the file vers| 00000280 69 6f 6e 0a 6e 75 6d 62 65 72 20 6f 72 20 69 66 |ion.number or if| 00000290 20 74 68 65 72 65 20 69 73 20 61 20 76 65 72 79 | there is a very| 000002a0 20 6d 61 6a 6f 72 20 63 68 61 6e 67 65 20 74 68 | major change th| 000002b0 65 6e 20 49 20 6d 69 67 68 74 20 70 72 6f 76 69 |en I might provi| 000002c0 64 65 20 62 61 63 6b 77 61 72 64 73 0a 63 6f 6d |de backwards.com| 000002d0 70 61 74 69 62 69 6c 69 74 79 2e 0a 0a 41 20 66 |patibility...A f| 000002e0 72 61 6d 65 20 90 6e 91 20 69 73 20 73 74 6f 72 |rame .n. is stor| 000002f0 65 64 20 69 6e 20 90 46 72 61 6d 65 73 2e 6e 20 |ed in .Frames.n | 00000300 44 49 56 20 31 30 2e 6e 91 2e 20 53 6f 20 66 72 |DIV 10.n.. So fr| 00000310 61 6d 65 20 32 33 20 77 6f 75 6c 64 20 62 65 20 |ame 23 would be | 00000320 73 74 6f 72 65 64 20 69 6e 0a 90 46 72 61 6d 65 |stored in..Frame| 00000330 73 2e 32 2e 32 33 91 2e 0a 0a 41 6c 6c 20 66 72 |s.2.23....All fr| 00000340 61 6d 65 73 20 61 72 65 20 73 69 6d 70 6c 79 20 |ames are simply | 00000350 4c 5a 57 2d 63 6f 6d 70 72 65 73 73 65 64 20 73 |LZW-compressed s| 00000360 70 72 69 74 65 20 66 69 6c 65 73 20 77 69 74 68 |prite files with| 00000370 20 6f 6e 65 20 31 35 30 78 31 35 30 20 6d 6f 64 | one 150x150 mod| 00000380 65 20 31 33 0a 73 70 72 69 74 65 20 6e 61 6d 65 |e 13.sprite name| 00000390 64 20 90 66 72 61 6d 65 91 20 77 68 69 63 68 20 |d .frame. which | 000003a0 69 73 20 70 6c 6f 74 74 65 64 20 77 69 74 68 20 |is plotted with | 000003b0 4f 53 5f 53 70 72 69 74 65 4f 70 20 35 32 2e 0a |OS_SpriteOp 52..| 000003c0 0a 50 72 65 76 69 6f 75 73 20 76 65 72 73 69 6f |.Previous versio| 000003d0 6e 20 6e 75 6d 62 65 72 73 20 61 72 65 3a 0a 0a |n numbers are:..| 000003e0 56 65 72 73 69 6f 6e 0a 20 20 31 30 30 20 20 20 |Version. 100 | 000003f0 20 20 20 20 20 20 20 20 4f 70 74 69 6f 6e 73 20 | Options | 00000400 73 74 6f 72 65 64 20 69 6e 20 90 30 91 20 66 69 |stored in .0. fi| 00000410 6c 65 0a 20 20 31 30 31 20 20 20 20 20 20 20 20 |le. 101 | 00000420 20 20 20 52 65 6e 61 6d 65 64 20 90 30 91 20 74 | Renamed .0. t| 00000430 6f 20 90 4f 70 74 69 6f 6e 73 91 0a 20 20 31 30 |o .Options.. 10| 00000440 32 20 20 20 20 20 20 20 20 20 20 20 41 64 64 65 |2 Adde| 00000450 64 20 66 69 6c 65 20 76 65 72 73 69 6f 6e 20 6e |d file version n| 00000460 75 6d 62 65 72 0a 20 20 31 30 33 20 20 20 20 20 |umber. 103 | 00000470 20 20 20 20 20 20 49 6e 63 6c 75 64 65 64 20 67 | Included g| 00000480 72 69 64 20 73 69 7a 65 20 26 20 73 63 61 6c 65 |rid size & scale| 00000490 0a 20 20 31 30 34 20 20 20 20 20 20 20 20 20 20 |. 104 | 000004a0 20 45 78 74 65 6e 64 65 64 20 6d 61 78 2e 20 66 | Extended max. f| 000004b0 72 61 6d 65 73 20 66 72 6f 6d 20 37 36 20 74 6f |rames from 76 to| 000004c0 20 37 36 38 0a 20 20 31 30 35 20 20 20 20 20 20 | 768. 105 | 000004d0 20 20 20 20 20 4d 6f 76 65 64 20 90 4f 70 74 69 | Moved .Opti| 000004e0 6f 6e 73 91 20 6f 75 74 20 6f 66 20 90 46 72 61 |ons. out of .Fra| 000004f0 6d 65 73 91 0a 0a 3a 2d 29 0a |mes...:-).| 000004fa