A speeding car looks faster with rally stripes, but it looks twice as fast when it also stirs up some dust!
Main.javaand name the class
Particle1DustSmoke.java. Remember to also refactor the first line of the
Particle1DustSmoke app = new Particle1DustSmoke();.
assets/Effects/smoke.pnginto your project's
assets/Effectdirectory. It includes a sprite animation of a dust cloud.
ParticleEmitterobject and initialize the emitter in the
simpleInitApp()method. Give the emitter a descriptive name and tell it to keep 100 particles of type
Triangleready (from the
private ParticleEmitter dustEmitter; ...