v0.3.0: improved visuals for venom gas.

This commit is contained in:
Evan Debenham 2015-05-21 01:54:32 -04:00
parent d515b9c2f9
commit 05d20a4525

View File

@ -26,6 +26,7 @@ import com.watabou.noosa.Image;
import com.watabou.noosa.TextureFilm; import com.watabou.noosa.TextureFilm;
import com.watabou.noosa.particles.Emitter; import com.watabou.noosa.particles.Emitter;
import com.shatteredpixel.shatteredpixeldungeon.Assets; import com.shatteredpixel.shatteredpixeldungeon.Assets;
import com.watabou.utils.ColorMath;
import com.watabou.utils.PointF; import com.watabou.utils.PointF;
import com.watabou.utils.Random; import com.watabou.utils.Random;
@ -273,7 +274,7 @@ public class Speck extends Image {
break; break;
case VENOM: case VENOM:
hardlight( 0x330033 ); hardlight( 0x8844FF );
angularSpeed = 30; angularSpeed = 30;
angle = Random.Float( 360 ); angle = Random.Float( 360 );
lifespan = Random.Float( 1f, 3f ); lifespan = Random.Float( 1f, 3f );
@ -414,6 +415,7 @@ public class Speck extends Image {
break; break;
case VENOM: case VENOM:
hardlight( ColorMath.interpolate( 0x8844FF, 0x00FF00 , p ));
case STENCH: case STENCH:
am = (p < 0.5f ? p : 1 - p) * 2; am = (p < 0.5f ? p : 1 - p) * 2;
scale.set( 1 + p * 2 ); scale.set( 1 + p * 2 );