public GameMode Update(GameTime gameTime, Game1 game) { ProcessKeyboard(gameTime); float moveSpeed = gameTime.ElapsedGameTime.Milliseconds / 500.0f * gameSpeed; moveSpeed *= (MaxSpeed * curAcc); MoveForward(ref buggyPosition, buggyRotation, moveSpeed); hud.Update(game); buggySpeed = moveSpeed; UpdateCamera(); return(GameMode.Play); }
public GameMode Update(Game1 game) { GameInput currentInputState = GameInput.GetState(); if (currentInputState.Test == ButtonState.Pressed) { TEST = true; } if (currentInputState.RightButton == ButtonState.Pressed) { modelRotation += 0.05f; } hud.Update(game); _PreviousInputState = currentInputState; return(GameMode.Play); }