Ejemplo n.º 1
0
        public override void DrawFast(Surface target, int x, int y, int width, int height)
        {
            double currentTime = DXTimer.GetCurrMillis();

            if (lastTime + refresh < currentTime)
            {
                curr     = (curr + 1) % 8;
                lastTime = currentTime;
            }

            if (!dying)
            {
                images.DrawFast(target, x, y, width, height, curr);
            }
            else if (!moving)
            {
                images.Death[dieFrame].DrawFast(target, x, y, width, height);
            }
        }