官术网_书友最值得收藏!

Updating

Our game will now enter an endless loop in which the Update() and Draw() methods are called repeatedly until we exit the application. By default, this loop attempts to run 60 times per second on the Windows and Xbox platforms, and 30 times per second on the Windows Phone platform.

The Update() method is used to process all of our game logic, such as checking for and reacting to player input, updating the positions of objects in the game world, and detecting collisions. The Update() method has a single parameter, gameTime, which identifies how much real time has passed since the last call to Update(). We can use this to scale movements smoothly over time to reduce stuttering that would occur if we make the assumption that our update will always run at a consistent frame rate, and code on other system events impacted by the update cycle.

主站蜘蛛池模板: 林芝县| 浦北县| 江山市| 台南市| 昌图县| 桑植县| 苗栗市| 哈巴河县| 海盐县| 绍兴县| 舒城县| 湖南省| 临西县| 图木舒克市| 准格尔旗| 章丘市| 通化县| 沙河市| 乐都县| 重庆市| 广元市| 静安区| 湟中县| 伊金霍洛旗| 定西市| 铜鼓县| 道真| 黔西县| 资中县| 文安县| 邹城市| 昂仁县| 阳城县| 太和县| 光泽县| 自贡市| 临桂县| 凤翔县| 宝坻区| 嫩江县| 双辽市|