Creating explosions

We're almost done with our game here, and only the following two parts are remaining:

  • Adding particle effects of an explosion
  • Displaying our score on the screen

We will divide this part into two sections wherein we will finish half of our explosions in this chapter, and the further half will be completed along with the UI of our game that will then conclude this game. So, let's get started with this now. For our explosion, we will be needing a sprite sheet. We will use the following sprite sheet for our game:

Our explosion sprite sheet

We will create a new class named ExplosionEffect.java. Note here that we will not be ...

Get Learning Android Game Development now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.