Exemplo n.º 1
0
 public Sprite(Animation.Type animationType = Animation.Type.REPEAT)
 {
     currentFrame = 0;
     sprites = new List<Texture2D>();
     frameDelays = new List<float>();
     offsets = new List<Vector2>();
     frameTimeElapsed = 0.0f;
     totalTimeRemaining = 0.0f;
     resetFrame = 0;
     boxes = new Dictionary<int, List<CLNS.BoundingBox>>();
     spriteOffset = Vector2.Zero;
     position = Vector2.Zero;
     this.animationType = animationType;
     effects = SpriteEffects.None;
     isAnimationComplete = false;
     isFrameComplete = new List<bool>();
 }
Exemplo n.º 2
0
 public void SetAnimationType(Animation.Type animationType)
 {
     this.animationType = animationType;
 }