Moved several enums and helper classes into the QURO library for flexibility and potential reuse. Also solved desync in animations by making AnimatedSprites reset their timer every time a new animation is loaded.
19 lines
376 B
C#
19 lines
376 B
C#
using Microsoft.Xna.Framework;
|
|
|
|
namespace QURO.AnimationLibrary
|
|
{
|
|
public class Frame
|
|
{
|
|
public Rectangle SourceRect { get; set; }
|
|
public float Delay { get; set; }
|
|
|
|
public Frame() { }
|
|
|
|
public Frame(Rectangle sourceRectangle, float delay)
|
|
{
|
|
SourceRect = sourceRectangle;
|
|
Delay = delay;
|
|
}
|
|
}
|
|
}
|