public Sprite(Sprite sprite) { game = sprite.game; texture = sprite.texture; frameWidth = sprite.FrameWidth; frameHeight = sprite.FrameHeight; loop = sprite.loop; totalFrames = sprite.TotalFrames; currentFrame = 0; duration = 0.16f; elapsedTime = 0.0f; expired = false; paddingX = 0; paddingY = 0; animate = true; rotation = 0.0f; direction = 0; scale = 1.0f; depth = 1.0f; }
public Sprite(ref GameHandler game, Texture2D texture, int frameWidth, int frameHeight, bool loops, int totalFrames) { this.game = game; this.texture = texture; this.frameWidth = frameWidth; this.frameHeight = frameHeight; this.totalFrames = totalFrames; currentFrame = 0; loop = loops; duration = 0.16f; elapsedTime = 0.0f; expired = false; paddingX = 0; paddingY = 0; animate = true; rotation = 0.0f; direction = 0; scale = 1.0f; depth = 1.0f; }