- Beginning C++ Game Programming
- John Horton
- 150字
- 2021-03-26 16:12:25
Summary
In this chapter, we learned that a variable is a named storage location in memory in which we can keep values of a specific type. The types include int, float, double, bool, String, and char.
We can declare and initialize all of the variables we need to store the data for our game. Once we have our variables, we can manipulate them using the arithmetic and assignment operators, as well as use them in tests with the logical operators. Used in conjunction with the if and else keywords, we can branch our code depending on the current situation in the game.
Using all of this new knowledge, we animated some clouds and a bee. In the next chapter, we will use these skills some more to add a Heads Up Display (HUD) and add more input options for the player, as well as represent time visually using a time-bar.
- Getting Started with Gulp(Second Edition)
- Oracle 11g從入門到精通(第2版) (軟件開發(fā)視頻大講堂)
- .NET 4.0面向?qū)ο缶幊搪劊夯A(chǔ)篇
- Mastering Entity Framework
- 跟老齊學(xué)Python:輕松入門
- 數(shù)據(jù)結(jié)構(gòu)習(xí)題精解(C語言實(shí)現(xiàn)+微課視頻)
- Vue.js 3.0源碼解析(微課視頻版)
- Linux命令行與shell腳本編程大全(第4版)
- Visual Basic程序設(shè)計(jì)教程
- Android應(yīng)用開發(fā)深入學(xué)習(xí)實(shí)錄
- 基于MATLAB的控制系統(tǒng)仿真及應(yīng)用
- 微服務(wù)設(shè)計(jì)
- 零基礎(chǔ)入門學(xué)習(xí)C語言:帶你學(xué)C帶你飛
- 三步學(xué)Python
- Building Web Applications with Flask