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

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.

主站蜘蛛池模板: 青阳县| 渭南市| 盐山县| 沁阳市| 任丘市| 鹤庆县| 建湖县| 思南县| 舒城县| 信宜市| 黄山市| 乳源| 株洲县| 乌审旗| 汨罗市| 当阳市| 阳谷县| 门源| 舒兰市| 湖南省| 班戈县| 牡丹江市| 呼伦贝尔市| 石嘴山市| 尼勒克县| 崇文区| 密山市| 涿鹿县| 崇明县| 隆尧县| 镇坪县| 富锦市| 高邮市| 凌源市| 中超| 巴楚县| 邹平县| 兴隆县| 芦溪县| 鲜城| 潜江市|