Chapter 20: More Patterns, a Scrolling Background, and Building the Player's Ship
This is one of the longest chapters in this book, and we have quite a bit of work as well as theory to get through before we can see the results of it on our device/emulator. However, what you will learn about and then implement will give you the ability to dramatically increase the complexity of the games you can build. Once you understand what an Entity-Component system is and how to construct game objects using the Factory pattern, you will be able to add almost any game object you can imagine to your games. If you bought this book not just to learn Java but because you want to design and develop your own video games, then this chapter onward is for you.
In this chapter, we will cover the following topics:
- Looking more closely at the game objects and the problems their diversity causes
- Introducing the Entity-Component pattern
- Introducing the Simple Factory pattern
- Every...