C# Class SpriterBetaRuntime.SpriterCharacter

Logic for Spriter character This class is responsible for updating and drawing each spriter character
Afficher le fichier Open project: schmelze/SpriterXNA Class Usage Examples

Méthodes publiques

Свойство Type Description
FlipX bool
FlipY bool

Méthodes publiques

Méthode Description
Draw ( SpriteBatch spriteBatch ) : void

Draw the character

SpriterCharacter ( SpriterCharacterData animationData ) : System

Construct a new spriter character

Update ( GameTime time ) : void

Update the character's animation frames

Method Details

Draw() public méthode

Draw the character
public Draw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch spritebatch to use for drawing
Résultat void

SpriterCharacter() public méthode

Construct a new spriter character
public SpriterCharacter ( SpriterCharacterData animationData ) : System
animationData SpriterCharacterData Character animation data, loaded from a SCML file
Résultat System

Update() public méthode

Update the character's animation frames
public Update ( GameTime time ) : void
time Microsoft.Xna.Framework.GameTime gametime since the last call to update
Résultat void

Property Details

FlipX public_oe property

public bool FlipX
Résultat bool

FlipY public_oe property

public bool FlipY
Résultat bool