June 2013
Beginner
352 pages
9h 5m
English
Let's have a look at a classic fire effect. You can use it in combination with a Point Light, for campfires, torches, or for a wizard's fireball spell.
Main.java and name the class Particle6Fire.java. Remember to also refactor the first line of the main() method to Particle6Fire app = new Particle6Fire();.assets/Effects/flame.png into your project's assets/Effect directory. It includes a sprite animation of flames.Particle.j3md, and attach it to the scene:public void simpleInitApp() { ParticleEmitter fireEmitter = new ParticleEmitter("Emitter", ParticleMesh.Type.Triangle, 30); Material fireMat = new Material(assetManager, "Common/MatDefs/Misc/Particle.j3md"); ...Read now
Unlock full access