v0.2.4: resolved problems with goo, now using the new particle effect. Also tidied up Goo's description a bit.

This commit is contained in:
Evan Debenham
2015-02-15 05:56:59 -05:00
parent c817f454b9
commit 23eb797070
4 changed files with 8 additions and 52 deletions
@@ -1,25 +0,0 @@
package com.shatteredpixel.shatteredpixeldungeon.effects.particles;
import com.watabou.noosa.particles.Emitter;
/**
* Created by Evan on 30/09/2014.
*/
public class GooWarnParticle extends FlameParticle {
public static final Emitter.Factory FACTORY = new Emitter.Factory() {
@Override
public void emit( Emitter emitter, int index, float x, float y ) {
((GooWarnParticle)emitter.recycle( GooWarnParticle.class )).reset( x, y );
}
};
@Override
public void update() {
super.update();
float p = left / lifespan;
color( 0x000000 );
am = p > 0.5f ? (1.2f - p*0.8f) : (p*3 - 0.7f);
}
}