When we learn how to to deal with Director objects, our aim will be to build a structure, that can execute animations.
For this purpose, three working classes were established.
Sprite – information about position, size and reference to cast data.
Frame – set of sprites and information about tempo, delay, palette.
Score – just set of frames.
Information about score data is located in fourCC ‘VWSC’. This also provides information for our timeline.
So, if we use it well for our DIB casts, we get well-suited result:
As you may have noticed, there are some problems related with transparency sprites. So bad.
In addition to this issue, some cast information, like sprite rectangle will be needed in the future. I also hope, that by next post I get to show implementation FPS.