Summary
In this chapter, we have put in place a way to describe a level in a game and a system to interpret the description and build usable GameObject
instances. The Factory pattern is used in many types of programming, not just game development. The implementation we have used is the simplest possible implementation and I encourage you to put the Factory pattern on your list of patterns to research and develop further. The implementation we have used should serve you well if you wish to build some deep and interesting games, however.
In the next chapter, we will finally make the game come to life by adding collision detection, bullet spawning, and the logic of the game itself.