Exemplo n.º 1
0
 public static void Draw(this SpriteBatch batch, TextureRegion frame, Rectangle destinationRect, Color color)
 {
     batch.Draw(frame.Texture, destinationRect, frame.SourceRect, color, 0f, Vector2.Zero, SpriteEffects.None,
                0f);
 }
Exemplo n.º 2
0
 public void Add(string name, TextureRegion frame)
 {
     _regions[name] = frame;
 }