Shady particles

This commit is contained in:
Electroblob77
2020-06-20 22:47:55 +01:00
parent fbf8e7155c
commit ac4bb8bc11
3 changed files with 5 additions and 3 deletions
@@ -65,13 +65,13 @@ public class EntityBlizzard extends EntityMagicConstruct {
for(int i=0; i<6; i++){
double speed = (rand.nextBoolean() ? 1 : -1) * (0.1 + 0.05 * rand.nextDouble());
ParticleBuilder.create(Type.SNOW).pos(this.posX, this.posY + rand.nextDouble() * 3, this.posZ).vel(0, 0, 0)
.time(100).scale(2).spin(rand.nextDouble() * (radius - 0.5) + 0.5, speed).spawn(world);
.time(100).scale(2).spin(rand.nextDouble() * (radius - 0.5) + 0.5, speed).shaded(true).spawn(world);
}
for(int i=0; i<3; i++){
double speed = (rand.nextBoolean() ? 1 : -1) * (0.05 + 0.02 * rand.nextDouble());
ParticleBuilder.create(Type.CLOUD).pos(this.posX, this.posY + rand.nextDouble() * 2.5, this.posZ)
.clr(0xffffff).spin(rand.nextDouble() * (radius - 1) + 0.5, speed).spawn(world);
.clr(0xffffff).shaded(true).spin(rand.nextDouble() * (radius - 1) + 0.5, speed).spawn(world);
}
}
}
@@ -40,7 +40,7 @@ public class EntitySmokeBomb extends EntityBomb {
float brightness = rand.nextFloat() * 0.1f + 0.1f;
ParticleBuilder.create(Type.CLOUD, rand, posX, posY, posZ, 2*blastMultiplier, false)
.clr(brightness, brightness, brightness).time(80 + this.rand.nextInt(12)).spawn(world);
.clr(brightness, brightness, brightness).time(80 + this.rand.nextInt(12)).shaded(true).spawn(world);
brightness = rand.nextFloat() * 0.3f;
ParticleBuilder.create(Type.DARK_MAGIC, rand, posX, posY, posZ, 2*blastMultiplier, false)
@@ -79,6 +79,7 @@ public class IceAge extends SpellAreaEffect {
.vel(0, 0, 0)
.scale(2)
.spin(world.rand.nextDouble() * (radius - 0.5) + 0.5, speed)
.shaded(true)
.spawn(world);
}
@@ -88,6 +89,7 @@ public class IceAge extends SpellAreaEffect {
.pos(origin.x, origin.y + world.rand.nextDouble() * 2.5, origin.z)
.clr(0xffffff)
.spin(world.rand.nextDouble() * (radius - 1) + 0.5, speed)
.shaded(true)
.spawn(world);
}
}