Home » Archimedes archive » Archimedes World » AW-1995-01-Disc2.adf » Disk2Jan95 » !AWJan95/Goodies/Event/Examples/!Text-DTP/ScrapFile

!AWJan95/Goodies/Event/Examples/!Text-DTP/ScrapFile

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-1995-01-Disc2.adf » Disk2Jan95
Filename: !AWJan95/Goodies/Event/Examples/!Text-DTP/ScrapFile
Read OK:
File size: 0357 bytes
Load address: 0000
Exec address: 0000
File contents
The sprite file must be called 'Sprites' and be either in the
application directory or in the appropriate language directory
if ResFind is in use. A call to PROCshell_ResourcesInit will
find the file if it exists and load all the sprites it contains
allocating memory as required.

Optionally a second sprite file called 'Sprites22' containing
high resolution sprites for users with multisync monitors may
be present. If the application is started in a high resolution
screen mode and 'Sprites22' is available it will be loaded
instead of 'Sprites'.

The sprite area pointer for each loaded template will be set to
point to the user sprite area, which put simply this means that
all sprites displayed in windows must be present in the
'Sprites' and 'Sprites22' files. This may, however, be changed
after loading with a call to FNshell_WindowSetSpriteArea.
00000000  54 68 65 20 73 70 72 69  74 65 20 66 69 6c 65 20  |The sprite file |
00000010  6d 75 73 74 20 62 65 20  63 61 6c 6c 65 64 20 27  |must be called '|
00000020  53 70 72 69 74 65 73 27  20 61 6e 64 20 62 65 20  |Sprites' and be |
00000030  65 69 74 68 65 72 20 69  6e 20 74 68 65 0a 61 70  |either in the.ap|
00000040  70 6c 69 63 61 74 69 6f  6e 20 64 69 72 65 63 74  |plication direct|
00000050  6f 72 79 20 6f 72 20 69  6e 20 74 68 65 20 61 70  |ory or in the ap|
00000060  70 72 6f 70 72 69 61 74  65 20 6c 61 6e 67 75 61  |propriate langua|
00000070  67 65 20 64 69 72 65 63  74 6f 72 79 0a 69 66 20  |ge directory.if |
00000080  52 65 73 46 69 6e 64 20  69 73 20 69 6e 20 75 73  |ResFind is in us|
00000090  65 2e 20 41 20 63 61 6c  6c 20 74 6f 20 50 52 4f  |e. A call to PRO|
000000a0  43 73 68 65 6c 6c 5f 52  65 73 6f 75 72 63 65 73  |Cshell_Resources|
000000b0  49 6e 69 74 20 77 69 6c  6c 0a 66 69 6e 64 20 74  |Init will.find t|
000000c0  68 65 20 66 69 6c 65 20  69 66 20 69 74 20 65 78  |he file if it ex|
000000d0  69 73 74 73 20 61 6e 64  20 6c 6f 61 64 20 61 6c  |ists and load al|
000000e0  6c 20 74 68 65 20 73 70  72 69 74 65 73 20 69 74  |l the sprites it|
000000f0  20 63 6f 6e 74 61 69 6e  73 0a 61 6c 6c 6f 63 61  | contains.alloca|
00000100  74 69 6e 67 20 6d 65 6d  6f 72 79 20 61 73 20 72  |ting memory as r|
00000110  65 71 75 69 72 65 64 2e  0a 0a 4f 70 74 69 6f 6e  |equired...Option|
00000120  61 6c 6c 79 20 61 20 73  65 63 6f 6e 64 20 73 70  |ally a second sp|
00000130  72 69 74 65 20 66 69 6c  65 20 63 61 6c 6c 65 64  |rite file called|
00000140  20 27 53 70 72 69 74 65  73 32 32 27 20 63 6f 6e  | 'Sprites22' con|
00000150  74 61 69 6e 69 6e 67 0a  68 69 67 68 20 72 65 73  |taining.high res|
00000160  6f 6c 75 74 69 6f 6e 20  73 70 72 69 74 65 73 20  |olution sprites |
00000170  66 6f 72 20 75 73 65 72  73 20 77 69 74 68 20 6d  |for users with m|
00000180  75 6c 74 69 73 79 6e 63  20 6d 6f 6e 69 74 6f 72  |ultisync monitor|
00000190  73 20 6d 61 79 0a 62 65  20 70 72 65 73 65 6e 74  |s may.be present|
000001a0  2e 20 49 66 20 74 68 65  20 61 70 70 6c 69 63 61  |. If the applica|
000001b0  74 69 6f 6e 20 69 73 20  73 74 61 72 74 65 64 20  |tion is started |
000001c0  69 6e 20 61 20 68 69 67  68 20 72 65 73 6f 6c 75  |in a high resolu|
000001d0  74 69 6f 6e 0a 73 63 72  65 65 6e 20 6d 6f 64 65  |tion.screen mode|
000001e0  20 61 6e 64 20 27 53 70  72 69 74 65 73 32 32 27  | and 'Sprites22'|
000001f0  20 69 73 20 61 76 61 69  6c 61 62 6c 65 20 69 74  | is available it|
00000200  20 77 69 6c 6c 20 62 65  20 6c 6f 61 64 65 64 0a  | will be loaded.|
00000210  69 6e 73 74 65 61 64 20  6f 66 20 27 53 70 72 69  |instead of 'Spri|
00000220  74 65 73 27 2e 0a 0a 54  68 65 20 73 70 72 69 74  |tes'...The sprit|
00000230  65 20 61 72 65 61 20 70  6f 69 6e 74 65 72 20 66  |e area pointer f|
00000240  6f 72 20 65 61 63 68 20  6c 6f 61 64 65 64 20 74  |or each loaded t|
00000250  65 6d 70 6c 61 74 65 20  77 69 6c 6c 20 62 65 20  |emplate will be |
00000260  73 65 74 20 74 6f 0a 70  6f 69 6e 74 20 74 6f 20  |set to.point to |
00000270  74 68 65 20 75 73 65 72  20 73 70 72 69 74 65 20  |the user sprite |
00000280  61 72 65 61 2c 20 77 68  69 63 68 20 70 75 74 20  |area, which put |
00000290  73 69 6d 70 6c 79 20 74  68 69 73 20 6d 65 61 6e  |simply this mean|
000002a0  73 20 74 68 61 74 0a 61  6c 6c 20 73 70 72 69 74  |s that.all sprit|
000002b0  65 73 20 64 69 73 70 6c  61 79 65 64 20 69 6e 20  |es displayed in |
000002c0  77 69 6e 64 6f 77 73 20  6d 75 73 74 20 62 65 20  |windows must be |
000002d0  70 72 65 73 65 6e 74 20  69 6e 20 74 68 65 0a 27  |present in the.'|
000002e0  53 70 72 69 74 65 73 27  20 61 6e 64 20 27 53 70  |Sprites' and 'Sp|
000002f0  72 69 74 65 73 32 32 27  20 66 69 6c 65 73 2e 20  |rites22' files. |
00000300  54 68 69 73 20 6d 61 79  2c 20 68 6f 77 65 76 65  |This may, howeve|
00000310  72 2c 20 62 65 20 63 68  61 6e 67 65 64 0a 61 66  |r, be changed.af|
00000320  74 65 72 20 6c 6f 61 64  69 6e 67 20 77 69 74 68  |ter loading with|
00000330  20 61 20 63 61 6c 6c 20  74 6f 20 46 4e 73 68 65  | a call to FNshe|
00000340  6c 6c 5f 57 69 6e 64 6f  77 53 65 74 53 70 72 69  |ll_WindowSetSpri|
00000350  74 65 41 72 65 61 2e                              |teArea.|
00000357