| Represents | Class in TDSM source code |
|---|---|
An animation of a particular sprite style (style) |
com.jordanbunke.tdsm.data.Animation |
Note:
The specification uses
Ato represent an arbitraryaniminstance in property and function definitions.
A.id -> stringDescription:
The identification code of an animation. This code should be unique among all the animations of a style. Animation IDs mustn't contain hyphens (-), as this would break the parsing of sprite IDs.
A.get_frame_count() -> intReturns the number of frames in the animation.
Note:
An animation with a four-frame cycle, but only three visually unique frames (e.g. walk: step 1, middle, step 2) will return 3 instead of 4 if it is defined as an oscillating (ping-pong) animation rather than a looping animation.
anim constructor: