Monogame Animated Sprite Official

Rectangle sourceRectangle = new Rectangle(width * column, height * row, width, height); Rectangle destinationRectangle = new Rectangle((int)location.X, (int)location.Y, width, height);

public bool IsPlaying get; private set;

public class Game1 : Game

public AnimatedSprite(Texture2D texture, int rows, int columns, float frameSpeed = 100f) monogame animated sprite

protected override void Draw(GameTime gameTime) height * row

using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System.Collections.Generic; public bool IsPlaying get

Share This