Examples of Gravity


Examples of tripleplay.particle.effect.Gravity

        // explode.initters.add(Color.constant(0xFFF06969));
        explode.initters.add(Transform.layer(explode.layer));
        explode.initters.add(Velocity.randomNormal(rando, 0, 70));
        explode.initters.add(Velocity.increment(0, 10));
        explode.effectors.add(Alpha.byAge(Interpolator.EASE_IN));
        explode.effectors.add(new Gravity(30));
        // explode.effectors.add(new Drag(0.95f));
        explode.effectors.add(new Drag(drag));
        explode.effectors.add(new Move());
        return explode;
    }
View Full Code Here

Examples of tripleplay.particle.effect.Gravity

        emitter.generator = Generator.constant(100);
        emitter.initters.add(Lifespan.constant(5));
        emitter.initters.add(Color.constant(0xFF99CCFF));
        emitter.initters.add(Transform.layer(emitter.layer));
        emitter.initters.add(Velocity.randomSquare(rando, -20, 20, -100, 0));
        emitter.effectors.add(new Gravity(30));
        emitter.effectors.add(new Move());
        emitter.effectors.add(Alpha.byAge(Interpolator.EASE_OUT, 1, 0));
        emitter.layer.setTranslation(width()/2, height()/2);
        note(emitter);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.