Chapter 22: Particle Systems and Handling Screen Touches
We already have the real-time system that we implemented in the previous chapter using a thread. In this chapter, we will create the entities that will exist and evolve in this real-time system as if they have a mind of their own; they will form the appearance of the drawings that the user can achieve.
We will also see how the user implements these entities by learning how to respond to interaction with the screen. This is different to interacting with a widget in a UI layout.
Here is what is coming up in this chapter:
- Adding custom buttons to the screen
- Coding the
Particle
class - Coding the
ParticleSystem
class - Handling screen touches
- The Android Studio Profiler tool
We will start by adding a custom UI to our app.
WARNING
This app produces bright flashing colors. It may cause discomfort or seizures for people with photosensitive epilepsy. Reader discretion is advised. You might like...