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

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!

主站蜘蛛池模板: 方正县| 西藏| 平舆县| 灵丘县| 临海市| 金坛市| 新余市| 铜山县| 克东县| 石河子市| 五台县| 高雄县| 双流县| 宜都市| 吉林市| 唐山市| 古田县| 女性| 衡南县| 新巴尔虎左旗| 大悟县| 新源县| 三门峡市| 洛南县| 沙湾县| 阿拉善左旗| 兴安县| 云林县| 鹤岗市| 大石桥市| 聂荣县| 锡林浩特市| 桐梓县| 丰宁| 扬中市| 泉州市| 百色市| 石渠县| 格尔木市| 安岳县| 自贡市|