Property | Type | Description | |
---|---|---|---|
alpha | float | ||
blend | |||
color | Color | ||
graphicHeight | int | ||
graphicWidth | int | ||
offset | Vector2 | ||
screenPositioning | ScreenPositioning | ||
sheetOffset | Vector2 | ||
visible | bool |
Property | Type | Description | |
---|---|---|---|
animations | Animation>.Dictionary | ||
atlas | Microsoft.Xna.Framework.Graphics.Texture2D | ||
currentAnimation | String |
Method | Description | |
---|---|---|
Draw ( ) : void | ||
Sprite ( float x = 0f, float y = 0f, int width, int height ) : System | ||
Update ( ) : void | ||
addAnimation ( String name, List |
||
addAnimationCallback ( String animationName, Action |
||
addOnCompleteCallback ( String animationName, Action |
||
loadGraphic ( String textureName, int width, int height ) : void | ||
play ( String animation ) : void | ||
stop ( ) : void |
public Sprite ( float x = 0f, float y = 0f, int width, int height ) : System | ||
x | float | |
y | float | |
width | int | |
height | int | |
return | System |
public addAnimation ( String name, List |
||
name | String | |
frames | List |
|
fps | int | |
looped | bool | |
return | void |
public addAnimationCallback ( String animationName, Action |
||
animationName | String | |
callback | Action |
|
return | void |
public addOnCompleteCallback ( String animationName, Action |
||
animationName | String | |
callback | Action |
|
return | void |
public loadGraphic ( String textureName, int width, int height ) : void | ||
textureName | String | |
width | int | |
height | int | |
return | void |
protected Texture2D,Microsoft.Xna.Framework.Graphics atlas | ||
return | Microsoft.Xna.Framework.Graphics.Texture2D |
public BlendState,Microsoft.Xna.Framework.Graphics blend | ||
return |
public ScreenPositioning screenPositioning | ||
return | ScreenPositioning |