C# Class Source.Graphics.AnimatedSprite

Exibir arquivo Open project: HarkerGameDev/TheGame Class Usage Examples

Public Properties

Property Type Description
Size Vector2
Texture Microsoft.Xna.Framework.Graphics.Texture2D

Public Methods

Method Description
AnimatedSprite ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Player player, int frames, float scale = 1f ) : System
Draw ( SpriteBatch spriteBatch ) : void
Update ( double deltaTime ) : void

Method Details

AnimatedSprite() public method

public AnimatedSprite ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Player player, int frames, float scale = 1f ) : System
texture Microsoft.Xna.Framework.Graphics.Texture2D
player Source.Collisions.Player
frames int
scale float
return System

Draw() public method

public Draw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

Update() public method

public Update ( double deltaTime ) : void
deltaTime double
return void

Property Details

Size public_oe property

public Vector2 Size
return Vector2

Texture public_oe property

public Texture2D,Microsoft.Xna.Framework.Graphics Texture
return Microsoft.Xna.Framework.Graphics.Texture2D