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

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.

主站蜘蛛池模板: 富锦市| 洞头县| 平舆县| 和林格尔县| 马鞍山市| 南川市| 太谷县| 彰武县| 昌乐县| 安图县| 政和县| 宁远县| 万年县| 安溪县| 张家口市| 鄯善县| 景泰县| 洱源县| 志丹县| 启东市| 天镇县| 新泰市| 神池县| 秀山| 临泉县| 任丘市| 北宁市| 峡江县| 民丰县| 肃北| 沐川县| 登封市| 林芝县| 德江县| 铜川市| 新绛县| 桓仁| 富阳市| 望谟县| 紫阳县| 肃北|