O'Reilly logo

Monkey Game Development by Michael Hartlef

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Making it look nicer—some particle effects

In a game, eye candy is always good. For this, we will add some particle effects that will resemble smoke and explosions. The first will be emitted once a plane takes a hit, and the latter when it explodes into pieces.

The following methods will be added to the class game, but will be called during the callback methods of the engine class.

Emitting smoke

We need to create a method to emit some smoke (not real smoke), that will do so whether the plane is the enemy's or the player's.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required