Beginner C++ Game Programming Tutorial 22
We learn how to use
enum to get rid of all the magic number bullshit for representing a number of options or states, and we learn how to use
case as an alternative to long
else chains. I also give the sermon on the mount (c:).
- Declaring and using
- Writing a
- The evils of premature eja... optimization
Video Timestamp Index
Source Code Download
The goal for this video's homework is to modify apply the concepts learned in this tutorial to Fart-Annoyed.
The solution to this homework is here.