public AnimatedSprite(Texture2D texture, SpriteSheet ss, Vector2 position, bool centeredOrigin = true, float scale = 1f) { _texture = texture; _scale = scale; Sheet = ss; Position = position; _destination = new Vector2(); _centered = centeredOrigin; _origin = new Vector2(0,0); }
public SpriteSheet(SpriteSheet ss) { _bliteArea = new Rectangle(); _hasBeenValidated = false; texturename = ss.texturename; states = new List<AnimationState>(); foreach (AnimationState st in ss.states) { states.Add(st); } }