//----------------------------------------------------------------------------- // Updating //----------------------------------------------------------------------------- // Called every step to update the game. public void Update(float timeDelta) { //prop.Update(1.0 / 60.0, new Point2I(ScreenSize.X - Property<int>.Width, ScreenSize.Y / 2)); //if (Keyboard.IsKeyPressed(Keys.F4)) // GameBase.IsFullScreen = !GameBase.IsFullScreen; // Update the menu Controls.Update(); // Toggle debug mode if (Keyboard.IsKeyPressed(Keys.F2) || (GamePad.IsButtonDown(Buttons.Back) && GamePad.IsButtonPressed(Buttons.RightStickButton))) { debugMode = !debugMode; } // Update the game-state stack. if (!isGamePaused) { gameStateStack.Update(); } elapsedTicks++; // DEBUG: Update debug keys. GameDebug.GameControl = gameControl; GameDebug.UpdateRoomDebugKeys(); }