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

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!

主站蜘蛛池模板: 安阳县| 象州县| 荆门市| 文登市| 观塘区| 襄樊市| 朔州市| 厦门市| 徐州市| 汝州市| 松潘县| 敦煌市| 昔阳县| 万全县| 泰兴市| 闽侯县| 和龙市| 上蔡县| 杭州市| 积石山| 潼南县| 阜平县| 噶尔县| 东山县| 宜黄县| 顺平县| 清河县| 张家界市| 新巴尔虎左旗| 阜新市| 铜梁县| 延安市| 盖州市| 中阳县| 阜平县| 桃园市| 莱州市| 沂南县| 云和县| 成安县| 遂昌县|