C# Class Platformer.Animation

Represents an animated texture.
Currently, this class assumes that each frame of animation is as wide as each animation is tall. The number of frames in the animation are inferred from this.
Show file Open project: zmthy/play-dead Class Usage Examples

Public Methods

Method Description
Animation ( Microsoft.Xna.Framework.Graphics.Texture2D texture, float frameTime, OnDone onDone ) : System
Animation ( Microsoft.Xna.Framework.Graphics.Texture2D texture, float frameTime, bool isLooping ) : System

Constructors a new animation.

Done ( ) : void

Method Details

Animation() public method

public Animation ( Microsoft.Xna.Framework.Graphics.Texture2D texture, float frameTime, OnDone onDone ) : System
texture Microsoft.Xna.Framework.Graphics.Texture2D
frameTime float
onDone OnDone
return System

Animation() public method

Constructors a new animation.
public Animation ( Microsoft.Xna.Framework.Graphics.Texture2D texture, float frameTime, bool isLooping ) : System
texture Microsoft.Xna.Framework.Graphics.Texture2D
frameTime float
isLooping bool
return System

Done() public method

public Done ( ) : void
return void