protected override void Update(GameTime gameTime)
       {
           GamePadState p_state = GamePad.GetState(PlayerIndex.One);
           KeyboardState k_state = Keyboard.GetState();
           // ゲームの終了条件をチェックします。
           if (p_state.Buttons.Back == ButtonState.Pressed||(k_state.IsKeyDown(Keys.Escape)))
               this.Exit();
           if (k_state.IsKeyDown(Keys.A))
           {
               graphics.PreferredBackBufferHeight = 400;
               graphics.PreferredBackBufferWidth = 800;
               graphics.ApplyChanges();
           }
           base.Update(gameTime);
       }
最終更新:2012年07月21日 15:25