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

FAQ

Q) I can foresee that positioning sprites by their top-left corner could sometimes be inconvenient. Is there an alternative?

A) Fortunately, you can choose what point of a sprite is used as the positioning/origin pixel, just like we did with messageText, using the setOrigin function.

Q) The code is getting rather long and I am struggling to keep track of where everything is. How can we fix this?

A) Yes, I agree. In the next chapter, we will look at the first of a few ways we can organize our code and make it more readable. We will look at this when we learn about writing C++ functions. In addition, we will learn about a new way we can handle multiple objects/variables of the same type (like the clouds) when we learn about C++ arrays.

主站蜘蛛池模板: 江山市| 衡阳市| 襄垣县| 锦屏县| 大厂| 静宁县| 南和县| 河津市| 顺义区| 鸡东县| 化隆| 山丹县| 河南省| 株洲市| 泰兴市| 亳州市| 南城县| 丰县| 察哈| 宜州市| 通江县| 华蓥市| 五大连池市| 泰州市| 武定县| 大庆市| 商水县| 卓资县| 涪陵区| 卓资县| 赣州市| 马龙县| 时尚| 丹江口市| 舟曲县| 东台市| 缙云县| 榆中县| 涞水县| 苏尼特右旗| 海丰县|