- Beginning C++ Game Programming
- John Horton
- 144字
- 2021-03-26 16:12:28
Chapter 4: Loops, Arrays, Switches, Enumerations, and Functions – Implementing Game Mechanics
This chapter probably has more C++ information in it than any other chapter in this book. It is packed with fundamental concepts that will move our understanding on enormously. It will also begin to shed light on some of the murky areas we have been skipping over a little bit, such as functions and the game loop.
Once we have explored a whole list of C++ language necessities, we will then use everything we know to make the main game mechanic—the tree branches—move. By the end of this chapter, we will be ready for the final phase and the completion of Timber!!!.
In this chapter, we will cover the following topics:
- Loops
- Arrays
- Making decisions with switch
- Enumerations
- Getting started with functions
- Creating and moving the tree branches
推薦閱讀
- Oracle Database In-Memory(架構(gòu)與實(shí)踐)
- WSO2 Developer’s Guide
- INSTANT OpenNMS Starter
- 基于Swift語言的iOS App 商業(yè)實(shí)戰(zhàn)教程
- RSpec Essentials
- 微服務(wù)從小白到專家:Spring Cloud和Kubernetes實(shí)戰(zhàn)
- 區(qū)塊鏈技術(shù)與應(yīng)用
- Babylon.js Essentials
- Android移動(dòng)開發(fā)案例教程:基于Android Studio開發(fā)環(huán)境
- Getting Started with Nano Server
- Python 3 數(shù)據(jù)分析與機(jī)器學(xué)習(xí)實(shí)戰(zhàn)
- Oracle實(shí)用教程
- Natural Language Processing with Python Quick Start Guide
- Sails.js Essentials
- Python全棧開發(fā):基礎(chǔ)入門