V0.2.1 : Updated Goo particle effects again, small tweak
This commit is contained in:
parent
d3af7bb854
commit
6b72f83ccd
|
@ -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.1f, 0 );
|
emitter.start(GooWarnParticle.FACTORY, 0.05f, 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -68,7 +68,7 @@ public class Goo extends Mob {
|
||||||
for (int i = 0; i < Level.NEIGHBOURS9DIST2.length; i++) {
|
for (int i = 0; i < Level.NEIGHBOURS9DIST2.length; i++) {
|
||||||
int j = pos + Level.NEIGHBOURS9DIST2[i];
|
int j = pos + Level.NEIGHBOURS9DIST2[i];
|
||||||
if (j >= 0 && j <= 1023 && Level.passable[j])
|
if (j >= 0 && j <= 1023 && Level.passable[j])
|
||||||
CellEmitter.get(j).burst(ElmoParticle.FACTORY, 5);
|
CellEmitter.get(j).burst(ElmoParticle.FACTORY, 10);
|
||||||
}
|
}
|
||||||
Sample.INSTANCE.play( Assets.SND_BURNING );
|
Sample.INSTANCE.play( Assets.SND_BURNING );
|
||||||
return Random.NormalIntRange( 5, 30 );
|
return Random.NormalIntRange( 5, 30 );
|
||||||
|
|
|
@ -20,6 +20,6 @@ public class GooWarnParticle extends FlameParticle {
|
||||||
|
|
||||||
float p = left / lifespan;
|
float p = left / lifespan;
|
||||||
color( 0x000000 );
|
color( 0x000000 );
|
||||||
am = (1 - p*0.9f) + 0.1f;
|
am = p > 0.5f ? (1.2f - p*0.8f) : (p*3 - 0.7f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user