프로퍼티 | 타입 | 설명 | |
---|---|---|---|
PreviousFrame | int |
메소드 | 설명 | |
---|---|---|
Draw ( |
Draw function - self explanatory
|
|
Load ( Microsoft.Xna.Framework.Content.ContentManager content, string name, int frameCount, float fps ) : void |
Loads function - self explanatory
|
|
Reset ( ) : void |
Reset function - Resets the frames and elapsed time to zero
|
|
Update ( float elapsed ) : void |
Update function - self explanatory
|
public Draw ( |
||
spriteBatch | the spritebatch to draw | |
position | where you want the texture to be drawn | |
리턴 | void |
public Load ( Microsoft.Xna.Framework.Content.ContentManager content, string name, int frameCount, float fps ) : void | ||
content | Microsoft.Xna.Framework.Content.ContentManager | The current content manager |
name | string | Name of the asset - assumes the animatedSprites folder |
frameCount | int | number of frames |
fps | float | Frames Per Second |
리턴 | void |
public Update ( float elapsed ) : void | ||
elapsed | float | elapsed time - if calling in MrGravityMain use (float)gameTime.ElapsedGameTime.TotalSeconds |
리턴 | void |