- 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
推薦閱讀
- C++ Primer習(xí)題集(第5版)
- Mastering Entity Framework Core 2.0
- 潮流:UI設(shè)計必修課
- Beginning Java Data Structures and Algorithms
- Photoshop智能手機APP UI設(shè)計之道
- 前端跨界開發(fā)指南:JavaScript工具庫原理解析與實戰(zhàn)
- 控糖控脂健康餐
- 認(rèn)識編程:以Python語言講透編程的本質(zhì)
- MATLAB 2020 從入門到精通
- NetBeans IDE 8 Cookbook
- HTML5秘籍(第2版)
- Instant Debian:Build a Web Server
- Java 從入門到項目實踐(超值版)
- Getting Started with Python
- SignalR:Real-time Application Development(Second Edition)