コード例 #1
0
ファイル: Sprite.cs プロジェクト: lodossDev/gameengine
 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>();
 }
コード例 #2
0
ファイル: Sprite.cs プロジェクト: lodossDev/gameengine
 public void SetAnimationType(Animation.Type animationType)
 {
     this.animationType = animationType;
 }