Example #1
0
        private void GameLoop(GameTime gameTime)
        {
            Update(gameTime, this.renderer, this.keyboardState);

            // Redraw the Form window
            Invalidate();

            if (GameForm.DEBUG_MODE)
            {
                fps = (1000 / (float)gameTime.ElapsedTime.TotalMilliseconds) * 0.1f + fps * 0.9f;
                System.Console.WriteLine("fps: {0,5:F1}", fps);
            }
        }
Example #2
0
 public abstract void Update(GameTime gameTime, IGraphics renderer, IControllerState keyboardState);