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

Chapter 2. Storing and Manipulating Data

Variables are a Programmer's Best Friend

If someone asked if it were raining, or which bag had more apples in it, it would be a pretty simple conversation. But how do you have that same conversation with a computer? In this chapter we're going to take a look at how to use variables and flow control to get our code to react to what's going on in the game.

In this chapter we will:

  • Discuss different types of variables including booleans, structs, enums, and arrays.
  • Learn how to set default properties for variables and how to let level designers change them.
  • Use operators on variables to add, subtract, and more.
  • Learn about using flow control to do different things under different circumstances.

Let's get started by learning about the different types of variables!

主站蜘蛛池模板: 澳门| 财经| 佛教| 桂平市| 墨玉县| 锦州市| 卢氏县| 谢通门县| 卫辉市| 绥阳县| 南和县| 孙吴县| 东乌珠穆沁旗| 西贡区| 林甸县| 武邑县| 德州市| 凤庆县| 隆尧县| 措美县| 汶川县| 南川市| 十堰市| 珲春市| 宝山区| 交城县| 玛沁县| 蓝田县| 白玉县| 云梦县| 运城市| 安庆市| 清水县| 安仁县| 涿鹿县| 文昌市| 武川县| 安化县| 河东区| 梅州市| 天津市|