V0.2.1 : Updated Goo particle effects (much better now)
This commit is contained in:
parent
2b5c563b8f
commit
d8e936ea97
|
@ -47,7 +47,7 @@ public class GooWarn extends Blob {
|
||||||
@Override
|
@Override
|
||||||
public void use( BlobEmitter emitter ) {
|
public void use( BlobEmitter emitter ) {
|
||||||
super.use( emitter );
|
super.use( emitter );
|
||||||
emitter.start(GooWarnParticle.FACTORY, 0.2f, 0 );
|
emitter.start(GooWarnParticle.FACTORY, 0.1f, 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -5,7 +5,7 @@ import com.watabou.noosa.particles.Emitter;
|
||||||
/**
|
/**
|
||||||
* Created by Evan on 30/09/2014.
|
* Created by Evan on 30/09/2014.
|
||||||
*/
|
*/
|
||||||
public class GooWarnParticle extends WindParticle {
|
public class GooWarnParticle extends FlameParticle {
|
||||||
|
|
||||||
public static final Emitter.Factory FACTORY = new Emitter.Factory() {
|
public static final Emitter.Factory FACTORY = new Emitter.Factory() {
|
||||||
@Override
|
@Override
|
||||||
|
@ -20,6 +20,6 @@ public class GooWarnParticle extends WindParticle {
|
||||||
|
|
||||||
float p = left / lifespan;
|
float p = left / lifespan;
|
||||||
color( 0x000000 );
|
color( 0x000000 );
|
||||||
am = (p < 0.5f ? p : 1 - p) * size;
|
am = (1 - p*0.9f) + 0.1f;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user