agsprite: preliminary support to create acsprset from extr. pics
commitd3b5611d2dead118a0c05d67c0c4d731bf005717
authorrofl0r <rofl0r@users.noreply.github.com>
Wed, 20 Nov 2019 03:33:21 +0000 (20 03:33 +0000)
committerrofl0r <rofl0r@users.noreply.github.com>
Wed, 20 Nov 2019 03:33:21 +0000 (20 03:33 +0000)
treeed5119990df19ec015a5f9eaf48bf4a48bfdb75a
parent4b305d653154a4f5877815fb125113b9f8728b83
agsprite: preliminary support to create acsprset from extr. pics

after extensive testing with Quest for Infamy, code works as
expected. currently there are some issues:

- ags doesn't automatically detect that sprindex.dat is bogus
  it needs to be removed when agspack'ing the files together
  (edit agspack.info and comment line containing sprindex.dat
   with a leading # character, and edit filecount to be one less).
  future version will probably add a command line option to
  create a new sprindex.dat which can be used to replace the original.

- on the start screen of QFI, the blinking shield sprite isn't displayed.
- on the intro of QFI, cut scene with hay cart isn't visible
- in Last 'n Furious, menu selection underlay bar isn't visible

the latter 3 issues may be related to how AGS treats alpha channel on
32bit images.

future versions of agsprite might support an option to reduce all
32bit images to 16bit (hi-color), as this could cut game size in half
while having hardly any visual difference.

addressing #4
Makefile
SpriteFile.c
SpriteFile.h
Targa.h
agsprite.c
rle.c [new file with mode: 0644]
rle.h [new file with mode: 0644]