C# Class SpriterBetaRuntime.SpriterCharacter

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

Public Properties

Property Type Description
FlipX bool
FlipY bool

Public Methods

Method 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 method

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

SpriterCharacter() public method

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

Update() public method

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

Property Details

FlipX public_oe property

public bool FlipX
return bool

FlipY public_oe property

public bool FlipY
return bool