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

Summary

In this chapter, we learned about Strings, SFML Text, and SFML Font. Between them, they allowed us to draw text to the screen, which provided the player with a HUD. We also used sstream, which allows us to concatenate Strings and other variables to display the score.

We also explored the SFML RectangleShape class, which does exactly what its name suggests. We used an object of the RectangleShape type and some carefully planned variables to draw a time-bar that visually displays to the player how much time they have left. Once we implement chopping and moving branches that can squash the player, the time-bar will provide visual feedback that will create tension and urgency.

In the next chapter, we are going to learn about a whole range of new C++ features, including loops, arrays, switching, enumerations, and functions. This will allow us to move tree branches, keep track of their locations, and squash the player.

主站蜘蛛池模板: 水富县| 罗定市| 沂水县| 宝山区| 吴堡县| 北宁市| 内黄县| 南投县| 兖州市| 昆明市| 大理市| 榆中县| 高邑县| 响水县| 乌审旗| 浮山县| 高青县| 龙陵县| 咸丰县| 安义县| 东乌珠穆沁旗| 宣威市| 潜江市| 时尚| 兴海县| 招远市| 汉中市| 安义县| 马尔康县| 新安县| 元朗区| 绥阳县| 乌兰察布市| 黄梅县| 孟连| 阜阳市| 雅江县| 丰原市| 大荔县| 屯门区| 乌鲁木齐市|