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) % images.NumFrames;
                lastTime = currentTime;
            }

            if (!dying)
            {
                images.DrawFast(target, x, y, width, height, curr, (Direction)direction);
            }
            //else
            //	images.Death[dieFrame].DrawFast(target,x,y,width,height);
        }
Ejemplo n.º 2
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) % bob.Length;
                lastTime = currentTime;
            }

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