- Beginning C++ Game Programming
- John Horton
- 136字
- 2021-03-26 16:12:28
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.
推薦閱讀
- Python自動化運(yùn)維快速入門(第2版)
- MySQL 8 DBA基礎(chǔ)教程
- Learn WebAssembly
- .NET 3.5編程
- Java網(wǎng)絡(luò)編程核心技術(shù)詳解(視頻微課版)
- Android玩家必備
- Statistical Application Development with R and Python(Second Edition)
- iPhone應(yīng)用開發(fā)從入門到精通
- C++ Application Development with Code:Blocks
- 零基礎(chǔ)學(xué)C語言(升級版)
- Julia數(shù)據(jù)科學(xué)應(yīng)用
- 超簡單:用Python讓Excel飛起來(實戰(zhàn)150例)
- 深度學(xué)習(xí)程序設(shè)計實戰(zhàn)
- 軟件測試技術(shù)
- DevOps 精要:業(yè)務(wù)視角