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

Chapter 3. Flood Control – Smoothing Out the Rough Edges

While playable, Flood Control in its current form is rather rough. When the player clicks on game pieces, they simply flop to their new orientation. Completed rows vanish without a trace, being filled in so rapidly that it is hard to tell if they actually disappeared at all. The game never ends! Once you have started, you can play forever, not worrying about the underwater research lab actually filling up with water.

In this chapter, we will address these issues by:

  • Animating the rotation of pieces when manipulated by the player
  • Gradually fading out pieces of completed scoring chains
  • Animating the falling of pieces into place on the board
  • Implementing the flooding of the dome and adding increasing difficulty levels
  • Adding a SpriteFont to the game and displaying the current level and score in their appropriate positions on the screen

All of these enhancements will give the player a better game experience, as well as give us the opportunity to learn more about how the SpriteBatch class can be used for animation and text display.

主站蜘蛛池模板: 仲巴县| 台湾省| 江口县| 乡宁县| 盈江县| 广丰县| 哈尔滨市| 元谋县| 法库县| 彭泽县| 渝中区| 鹤庆县| 北京市| 甘南县| 桑植县| 阆中市| 哈巴河县| 农安县| 凤阳县| 余江县| 汝阳县| 福建省| 修水县| 磐安县| 林西县| 白沙| 长武县| 休宁县| 屯留县| 芷江| 叙永县| 聊城市| 凉城县| 中宁县| 许昌县| 扎鲁特旗| 三都| 文山县| 宜黄县| 新乐市| 沁阳市|