C# Класс Platformer.AnimationPlayer

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

Draw() публичный Метод

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
Результат void

Pause() публичный Метод

public Pause ( ) : void
Результат void

PlayAnimation() публичный Метод

Begins or continues playback of an animation.
public PlayAnimation ( Animation animation ) : void
animation Animation
Результат void