X Tutup
Skip to content

Latest commit

 

History

History
45 lines (28 loc) · 1.47 KB

File metadata and controls

45 lines (28 loc) · 1.47 KB

< Contents

anim

Represents Class in TDSM source code
An animation of a particular sprite style (style) com.jordanbunke.tdsm.data.Animation

Note:

The specification uses A to represent an arbitrary anim instance in property and function definitions.

Properties

id

A.id -> string

Description:

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.

Functions

get_frame_count

A.get_frame_count() -> int

Returns 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.


See Also

anim constructor:

X Tutup