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

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.

主站蜘蛛池模板: 右玉县| 莱芜市| 潜山县| 博乐市| 芦山县| 怀远县| 南皮县| 若羌县| 老河口市| 阿尔山市| 邵武市| 陈巴尔虎旗| 达孜县| 虹口区| 禄丰县| 嵊州市| 都江堰市| 霸州市| 保定市| 丽水市| 淮滨县| 皋兰县| 多伦县| 肥城市| 腾冲县| 武宣县| 红原县| 尉犁县| 乌苏市| 靖州| 肇源县| 海兴县| 海城市| 贡山| 金塔县| 望谟县| 石河子市| 江口县| 新安县| 手机| 麻城市|