C# Class GPSTD_RM.AnimationLoop

Any animations are stored as loops. Loops advance until the end, and then return to a specified point.
ファイルを表示 Open project: dideler/gps-tower-defense Class Usage Examples

Public Methods

Method Description
AnimationLoop ( string name, SpriteFrame frames, int rIdx ) : System

Initialize the loop!

NextFrame ( int currentFrame ) : int

Get the next frame based on the current frame.

Method Details

AnimationLoop() public method

Initialize the loop!
public AnimationLoop ( string name, SpriteFrame frames, int rIdx ) : System
name string What is the loop called?
frames SpriteFrame The list of frames in the loop.
rIdx int The return index.
return System

NextFrame() public method

Get the next frame based on the current frame.
public NextFrame ( int currentFrame ) : int
currentFrame int The current position in the list.
return int