Chapter 20. More Patterns, a Scrolling Background and Building the Player's ship
This is one of the longest chapters 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 techniques to dramatically increase the complexity of the games you are able to 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 onwards is for you.
Here is an overview of the topics covered in this chapter:
- Looking more closely at the game objects and the problems their diversity causes
- Introducing the Entity-Component pattern
- Introducing the Simple Factory pattern
- Every object is a
GameObject...