public WaterParticle() {
      super();

      acc.y = 50;
      am = 0.5f;

      color(ColorMath.random(0xb6ccc2, 0x3b6653));
      size(2);
    }
Esempio n. 2
0
 @Override
 public void emit(Emitter emitter, int index, float x, float y) {
   LeafParticle p = ((LeafParticle) emitter.recycle(LeafParticle.class));
   p.color(ColorMath.random(Dungeon.level.color1, Dungeon.level.color2));
   p.reset(x, y);
 }
Esempio n. 3
0
 @Override
 public void emit(Emitter emitter, int index, float x, float y) {
   LeafParticle p = ((LeafParticle) emitter.recycle(LeafParticle.class));
   p.color(ColorMath.random(0x004400, 0x88CC44));
   p.reset(x, y);
 }