예제 #1
0
파일: Scene.cs 프로젝트: daithyy/DSAA-CA
        public void UpdateAnimation(GameTime gameTime)
        {
            // Track how much time has passed ...
            frameTime += gameTime.ElapsedGameTime;

            // If it's greater than the frame time then move to the next frame ...
            if (frameTime.Milliseconds >= FrameSpeed)
            {
                Texture = Textures.Dequeue();
                Textures.Enqueue(Texture);
                frameTime = TimeSpan.Zero;
            }
        }