Implementing a particle system explosion

A particle system is a system that controls particles. In our case, ParticleSystem is a class that will spawn instances (lots of instances) of the Particle class that will create a simple explosion effect. Here is an image of the particles controlled by the particle system as it will look by the end of this chapter.

Implementing a particle system explosion

Note

The particle system in the finished game is plain white with smaller particles. By the end of this chapter it will be plain how to achieve both types of particle and you can choose. The smaller plain white particle suits the game better (in my opinion) but the big multi-colored particles show ...

Get Learning Java by Building Android Games - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.