Monogame Sprite Sheet -
public void AddClip(string name, string[] regionNames, float framesPerSecond, bool loop = true)
var clip = new AnimationClip RegionNames = regionNames, FrameDuration = 1.0f / framesPerSecond, Loop = loop ; _clips[name] = clip; monogame sprite sheet
public void Update(GameTime gt)
var region = GetRegion(regionName); if (region != Rectangle.Empty) spriteBatch.Draw(_texture, position, region, color); public void AddClip(string name
_animator.Draw(sb, _position, Color.White); FrameDuration = 1.0f / framesPerSecond