- XNA 4.0 Game Development by Example Beginner's Guide(Visual Basic Edition)
- Kurt Jaegers
- 187字
- 2021-08-20 15:50:42
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.
推薦閱讀
- 在你身邊為你設計Ⅲ:騰訊服務設計思維與實戰
- 文本數據挖掘:基于R語言
- Hadoop大數據實戰權威指南(第2版)
- 數據驅動:從方法到實踐
- 大數據架構和算法實現之路:電商系統的技術實戰
- OracleDBA實戰攻略:運維管理、診斷優化、高可用與最佳實踐
- Construct 2 Game Development by Example
- MySQL DBA修煉之道
- 大數據技術原理與應用:概念、存儲、處理、分析與應用
- Python 3爬蟲、數據清洗與可視化實戰
- 數據中心經營之道
- Scratch 2.0 Game Development HOTSHOT
- 掌中寶:電腦綜合應用技巧
- 推薦系統全鏈路設計:原理解讀與業務實踐
- Hands-On Java Deep Learning for Computer Vision