C# Class Platformer.AnimationPlayer

显示文件 Open project: zmthy/play-dead Class Usage Examples

Public Methods

Method Description
Draw ( GameTime gameTime, SpriteBatch spriteBatch, Vector2 position, SpriteEffects spriteEffects ) : void

Advances the time position and draws the current frame of the animation.

Pause ( ) : void
PlayAnimation ( Animation animation ) : void

Begins or continues playback of an animation.

Method Details

Draw() public method

Advances the time position and draws the current frame of the animation.
public Draw ( GameTime gameTime, SpriteBatch spriteBatch, Vector2 position, SpriteEffects spriteEffects ) : void
gameTime Microsoft.Xna.Framework.GameTime
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
position Vector2
spriteEffects SpriteEffects
return void

Pause() public method

public Pause ( ) : void
return void

PlayAnimation() public method

Begins or continues playback of an animation.
public PlayAnimation ( Animation animation ) : void
animation Animation
return void