示例#1
0
        /// <summary>
        /// Affichage avec flip
        /// </summary>
        /// <param name="screen"></param>
        /// <param name="x"></param>
        /// <param name="y"></param>

        public void Draw(SurfaceSprite screen, int x, int y, bool isHorizontalFlipped, bool isVerticalFlipped)
        {
            if (State != AnimatorStates.Stop)
            {
                CurrentAnimationFrame.Draw(screen, x, y, isHorizontalFlipped, isVerticalFlipped);
            }
        }
示例#2
0
        /// <summary>
        /// Affichage sans flip
        /// </summary>
        /// <param name="screen"></param>
        /// <param name="x"></param>
        /// <param name="y"></param>

        public void Draw(SurfaceSprite screen, int x, int y)
        {
            if (State != AnimatorStates.Stop)
            {
                CurrentAnimationFrame.Draw(screen, x, y);
            }
        }