Summary
In this chapter, we learned how we can add thousands of self-contained entities to our real-time system. The entities were controlled by the ParticleSystem
class, which, in turn, interacted with, and was controlled by, the game loop. As the game loop was running in a thread, we learned that the user can still interact seamlessly with the screen and the operating system will send us the details of these interactions via the onTouchEvent
function.
In the next chapter, our apps will finally get a bit noisier when we explore how to play sound effects.