Summary
In this chapter, we discovered C++ references, which are special variables that act as aliases for other variables. When we pass a variable by reference instead of by value, then anything we do on the reference happens to the variable back in the calling function.
We also learned about vertex arrays and created a vertex array full of quads to draw the tiles from a sprite sheet as a background.
The elephant in the room, of course, is that our zombie game doesn’t have any zombies. We’ll fix that in the next chapter by learning about C++ pointers and the Standard Template Library (STL).