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

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.

主站蜘蛛池模板: 紫阳县| 家居| 崇礼县| 盐城市| 通化县| 确山县| 宁化县| 永春县| 甘孜| 湖口县| 龙州县| 长白| 嘉荫县| 平乐县| 林周县| 荥阳市| 通山县| 长沙县| 米易县| 大荔县| 德阳市| 平和县| 高平市| 宜川县| 赫章县| 永清县| 津市市| 塘沽区| 罗定市| 新津县| 文水县| 崇明县| 海晏县| 安溪县| 溆浦县| 洛扎县| 江城| 满城县| 徐水县| 布拖县| 广德县|