private void DrawCharacter(SpriteBatch spriteBatch) { if (_settings.SelectedFrameIndex > 0) { BoardExtensions.DrawCharacterFrame(spriteBatch, _characterPosition, 2f, false, _settings.SelectedFrameIndex - 1, false, 0.2f); } if (_settings.SelectedFrameIndex < CharacterDefinition.FramesCount - 1) { BoardExtensions.DrawCharacterFrame(spriteBatch, _characterPosition, 2f, false, _settings.SelectedFrameIndex, false, 0.2f); } BoardExtensions.DrawCharacterFrame(spriteBatch, _characterPosition, 2f, false, _settings.SelectedFrameIndex, false, 1); }
public void Draw(SpriteBatch spriteBatch) { var frameIndex = Math.Max(_settings.SelectedAnimation.KeyFrames[CurrentKeyFrameIndex].FrameReference, 0); BoardExtensions.DrawCharacterFrame(spriteBatch, _animationPosition, 0.5f, true, frameIndex, true, 1); _animationButton.Draw(); //if (_playing) //{ // if (LegacySuport.DrawClickText(550, 3, "stop")) // _playing = false; //} //else //{ // if (LegacySuport.DrawClickText(550, 3, "play")) // _playing = true; //} }