Home » Archimedes archive » Archimedes World » AW-1992-03.adf » AWMar92 » !AWMar92/Goodies/StarGazer/!stargazer/SpriteMan

!AWMar92/Goodies/StarGazer/!stargazer/SpriteMan

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-1992-03.adf » AWMar92
Filename: !AWMar92/Goodies/StarGazer/!stargazer/SpriteMan
Read OK:
File size: 0244 bytes
Load address: 0000
Exec address: 0000
Duplicates

There is 1 duplicate copy of this file in the archive:

File contents
   10REM > Sprite Library v0.03
   20
   30DEFPROCsprite_init(sp$,sp1$)
   40LOCALl%
   50_s$=sp1$
   60  SYS "OS_File",5,sp$ TO ,,,,l%
   70  DIM sprites% l%, factors% 16, pixtrans% 16
   80  !sprites%=l%+16
   90  sprites%!8=1
  100  SYS "OS_SWINumberFromString",,"OS_SpriteOp" TO spop%
  110  SYS spop%,&109,sprites%
  120  SYS spop%,&10A,sprites%,sp$
  130  SYS"Wimp_ReadPixTrans",&100,sprites%,sp1$,,,,factors%,pixtrans%
  140ENDPROC
  150
  160DEFPROCsprite(sp$,X%,Y%)
  170  SYS spop%,&134,sprites%,sp$,X%+bx%,Y%+by%,8,factors%,pixtrans%
  180ENDPROC
  190
  200DEFPROCgetmodeinfo
  210  SYS "Wimp_ReadPixTrans",&100,sprites%,_s$,,,,factors%,pixtrans%
  220ENDPROC

� > Sprite Library v0.03

��sprite_init(sp$,sp1$)
(�l%
2_s$=sp1$
<!  ș "OS_File",5,sp$ � ,,,,l%
F.  � sprites% l%, factors% 16, pixtrans% 16
P  !sprites%=l%+16
Z  sprites%!8=1
d8  ș "OS_SWINumberFromString",,"OS_SpriteOp" � spop%
n  ș spop%,&109,sprites%
x   ș spop%,&10A,sprites%,sp$
�D  ș"Wimp_ReadPixTrans",&100,sprites%,sp1$,,,,factors%,pixtrans%
��
�
���sprite(sp$,X%,Y%)
�C  ș spop%,&134,sprites%,sp$,X%+bx%,Y%+by%,8,factors%,pixtrans%
��
�
���getmodeinfo
�D  ș "Wimp_ReadPixTrans",&100,sprites%,_s$,,,,factors%,pixtrans%
��
�
00000000  0d 00 0a 1c f4 20 3e 20  53 70 72 69 74 65 20 4c  |..... > Sprite L|
00000010  69 62 72 61 72 79 20 76  30 2e 30 33 0d 00 14 04  |ibrary v0.03....|
00000020  0d 00 1e 1b dd f2 73 70  72 69 74 65 5f 69 6e 69  |......sprite_ini|
00000030  74 28 73 70 24 2c 73 70  31 24 29 0d 00 28 07 ea  |t(sp$,sp1$)..(..|
00000040  6c 25 0d 00 32 0c 5f 73  24 3d 73 70 31 24 0d 00  |l%..2._s$=sp1$..|
00000050  3c 21 20 20 c8 99 20 22  4f 53 5f 46 69 6c 65 22  |<!  .. "OS_File"|
00000060  2c 35 2c 73 70 24 20 b8  20 2c 2c 2c 2c 6c 25 0d  |,5,sp$ . ,,,,l%.|
00000070  00 46 2e 20 20 de 20 73  70 72 69 74 65 73 25 20  |.F.  . sprites% |
00000080  6c 25 2c 20 66 61 63 74  6f 72 73 25 20 31 36 2c  |l%, factors% 16,|
00000090  20 70 69 78 74 72 61 6e  73 25 20 31 36 0d 00 50  | pixtrans% 16..P|
000000a0  15 20 20 21 73 70 72 69  74 65 73 25 3d 6c 25 2b  |.  !sprites%=l%+|
000000b0  31 36 0d 00 5a 12 20 20  73 70 72 69 74 65 73 25  |16..Z.  sprites%|
000000c0  21 38 3d 31 0d 00 64 38  20 20 c8 99 20 22 4f 53  |!8=1..d8  .. "OS|
000000d0  5f 53 57 49 4e 75 6d 62  65 72 46 72 6f 6d 53 74  |_SWINumberFromSt|
000000e0  72 69 6e 67 22 2c 2c 22  4f 53 5f 53 70 72 69 74  |ring",,"OS_Sprit|
000000f0  65 4f 70 22 20 b8 20 73  70 6f 70 25 0d 00 6e 1c  |eOp" . spop%..n.|
00000100  20 20 c8 99 20 73 70 6f  70 25 2c 26 31 30 39 2c  |  .. spop%,&109,|
00000110  73 70 72 69 74 65 73 25  0d 00 78 20 20 20 c8 99  |sprites%..x   ..|
00000120  20 73 70 6f 70 25 2c 26  31 30 41 2c 73 70 72 69  | spop%,&10A,spri|
00000130  74 65 73 25 2c 73 70 24  0d 00 82 44 20 20 c8 99  |tes%,sp$...D  ..|
00000140  22 57 69 6d 70 5f 52 65  61 64 50 69 78 54 72 61  |"Wimp_ReadPixTra|
00000150  6e 73 22 2c 26 31 30 30  2c 73 70 72 69 74 65 73  |ns",&100,sprites|
00000160  25 2c 73 70 31 24 2c 2c  2c 2c 66 61 63 74 6f 72  |%,sp1$,,,,factor|
00000170  73 25 2c 70 69 78 74 72  61 6e 73 25 0d 00 8c 05  |s%,pixtrans%....|
00000180  e1 0d 00 96 04 0d 00 a0  17 dd f2 73 70 72 69 74  |...........sprit|
00000190  65 28 73 70 24 2c 58 25  2c 59 25 29 0d 00 aa 43  |e(sp$,X%,Y%)...C|
000001a0  20 20 c8 99 20 73 70 6f  70 25 2c 26 31 33 34 2c  |  .. spop%,&134,|
000001b0  73 70 72 69 74 65 73 25  2c 73 70 24 2c 58 25 2b  |sprites%,sp$,X%+|
000001c0  62 78 25 2c 59 25 2b 62  79 25 2c 38 2c 66 61 63  |bx%,Y%+by%,8,fac|
000001d0  74 6f 72 73 25 2c 70 69  78 74 72 61 6e 73 25 0d  |tors%,pixtrans%.|
000001e0  00 b4 05 e1 0d 00 be 04  0d 00 c8 11 dd f2 67 65  |..............ge|
000001f0  74 6d 6f 64 65 69 6e 66  6f 0d 00 d2 44 20 20 c8  |tmodeinfo...D  .|
00000200  99 20 22 57 69 6d 70 5f  52 65 61 64 50 69 78 54  |. "Wimp_ReadPixT|
00000210  72 61 6e 73 22 2c 26 31  30 30 2c 73 70 72 69 74  |rans",&100,sprit|
00000220  65 73 25 2c 5f 73 24 2c  2c 2c 2c 66 61 63 74 6f  |es%,_s$,,,,facto|
00000230  72 73 25 2c 70 69 78 74  72 61 6e 73 25 0d 00 dc  |rs%,pixtrans%...|
00000240  05 e1 0d ff                                       |....|
00000244