Card Stories - General developer reference

=Introduction=

This page contains general reference material for developers.

Sprite animation
First, gather your PNGs in one directory, say "sequence/", and run the following command to glue them all together in one big horizontal stripe:

To reduce the file size:


 * 1) Open sequence.png in Gimp
 * 2) Apply Tools > Color Tools > Posterize, with a level high enough so that colors are as similar to the original as possible
 * 3) Save sequence.png
 * 4) Run pngcrush on it

Another choice would be to run sequence.png through the "Save for Web" Gimp plugin (which was forked here to be able to handle images with large dimensions), converting to a PNG8 with 64 colors. However, this removes anti-aliasing around edges, and may not look good on rotated images.

Finally, download and follow instructions at Spritely to animate the sequence.