DrawFast() public method

public DrawFast ( Surface target, int x, int y, int width, int height, int frame, Direction dir ) : void
target Surface
x int
y int
width int
height int
frame int
dir Direction
return void
Esempio 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);
        }