Comment 30 for bug 1121982

Revision history for this message
SirVer (sirver) wrote :

It is necessary for an number of animations to be separated into one base pic and regions for them to be the same size. However given you have two sets of animations as tino describes, you should not need them to be of the same size to be packed into the same image - so this is very likely a bug in the sprite generation script. I try to find some time today to look at the script again and do some refactorings.

Nicolai, I understand what you are saying, but this is much harder to find a spritemap generator for: essentially you first have to determine a 'good' base picture for an animation, and then you have to find the differences to this base picture for each frame (essentially the regions for each frame). You then also have a lot more numbers in the conf file. But the current approach will also crop the pixel data for each animation frame and will therefore also save the 25% you are talking about - so I do not know if the extra complexity will also buy us much.

It would be pretty easy to add this into the blitting code as it stands now - it is essentially just regions per frame instead of regions per animation set.