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.
Afficher le fichier Open project: zmthy/play-dead Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

Animation() public méthode

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
Résultat System

Done() public méthode

public Done ( ) : void
Résultat void