- Learning C# 7 By Developing Games with Unity 2017(Third Edition)
- Micael DaGra?a Greg Lukosek
- 134字
- 2021-07-02 19:59:36
Understanding what a variable is and what it does
What is a variable? Technically, it's a tiny section of your computer's memory that will hold any information that you put there. While a game is running, it keeps track of where the information is stored, the value kept there, and the type of that value. However, for this chapter, all you need to know is how a variable works. It's very simple.
What's usually in a mailbox, besides air? Well usually there's nothing, but occasionally there is something in it. Sometimes, there are letters, bills, a spider, and so on. The point is that what is in a mailbox can vary. Therefore, let's call each mailbox a variable.
In the game development world, some simple examples of variables might be:
- playerName
- playerScore
- highestScore
推薦閱讀
- The Complete Rust Programming Reference Guide
- Mastering Entity Framework Core 2.0
- FuelPHP Application Development Blueprints
- Beginning Java Data Structures and Algorithms
- Learning Chef
- Flask Web開發(fā)入門、進(jìn)階與實(shí)戰(zhàn)
- C語言程序設(shè)計實(shí)訓(xùn)教程
- HBase從入門到實(shí)戰(zhàn)
- Java Web程序設(shè)計
- Active Directory with PowerShell
- Java EE Web應(yīng)用開發(fā)基礎(chǔ)
- 超簡單:Photoshop+JavaScript+Python智能修圖與圖像自動化處理
- Python第三方庫開發(fā)應(yīng)用實(shí)戰(zhàn)
- Windows 10 for Enterprise Administrators
- Mastering VMware vSphere Storage