/// <summary> /// Allows the game to run logic such as updating the world, /// checking for collisions, gathering input, and playing audio. /// </summary> /// <param name="gameTime">Provides a snapshot of timing values.</param> protected override void Update(GameTime gameTime) { // Allows the game to exit if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed) { DirtyGlobalHelpers.SaveHighscores(); this.Exit(); } Oximeter.Update(gameTime); m_CurrentScene = m_CurrentScene.Update(gameTime); // TODO: Add your update logic here InputManager.Update(); base.Update(gameTime); }
/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { // Create a new SpriteBatch, which can be used to draw textures. spriteBatch = new SpriteBatch(GraphicsDevice); Oximeter = new OximeterManager(); Oximeter.Start(); this.Font = this.Content.Load<SpriteFont>("MainFont"); this.BigFont = this.Content.Load<SpriteFont>("BigUIFont"); m_CurrentScene = new TitleScene(); }