C# Class SuperCaissiere.Engine.Graphics.SpriteAnimation

Animation features (change frame with delay)
ファイルを表示 Open project: valryon/super-caissiere

Public Properties

Property Type Description
InfiniteAnimation int

Public Methods

Method Description
Reset ( ) : void

Restart animation

SpriteAnimation ( Rectangle sRect, int frameNumber, float frameSpeed ) : Microsoft.Xna.Framework

New animation

SpriteAnimation ( Rectangle sRect, int frameNumber, float frameSpeed, int loopNumber ) : Microsoft.Xna.Framework

New animation

SpriteAnimation ( Rectangle sRect, int frameNumber, float frameSpeed, int firstFrameX, Vector2 boxSize, int loopNumber ) : Microsoft.Xna.Framework

New animation engine

Update ( GameTime gameTime ) : void

Method Details

Reset() public method

Restart animation
public Reset ( ) : void
return void

SpriteAnimation() public method

New animation
public SpriteAnimation ( Rectangle sRect, int frameNumber, float frameSpeed ) : Microsoft.Xna.Framework
sRect Microsoft.Xna.Framework.Rectangle
frameNumber int
frameSpeed float
return Microsoft.Xna.Framework

SpriteAnimation() public method

New animation
public SpriteAnimation ( Rectangle sRect, int frameNumber, float frameSpeed, int loopNumber ) : Microsoft.Xna.Framework
sRect Microsoft.Xna.Framework.Rectangle
frameNumber int
frameSpeed float
loopNumber int
return Microsoft.Xna.Framework

SpriteAnimation() public method

New animation engine
public SpriteAnimation ( Rectangle sRect, int frameNumber, float frameSpeed, int firstFrameX, Vector2 boxSize, int loopNumber ) : Microsoft.Xna.Framework
sRect Microsoft.Xna.Framework.Rectangle
frameNumber int
frameSpeed float
firstFrameX int
boxSize Microsoft.Xna.Framework.Vector2
loopNumber int
return Microsoft.Xna.Framework

Update() public method

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

Property Details

InfiniteAnimation public_oe static_oe property

Repeat animation
public static int InfiniteAnimation
return int