use of com.watabou.noosa.particles.Emitter in project pixel-dungeon-remix by NYRDS.
the class Torch method execute.
@Override
public void execute(Hero hero, String action) {
if (action == AC_LIGHT) {
hero.spend(TIME_TO_LIGHT);
hero.busy();
hero.getSprite().operate(hero.getPos());
detach(hero.belongings.backpack);
Buff.affect(hero, Light.class, Light.DURATION);
Emitter emitter = hero.getSprite().centerEmitter();
emitter.start(FlameParticle.FACTORY, 0.2f, 3);
} else {
super.execute(hero, action);
}
}
use of com.watabou.noosa.particles.Emitter in project pixel-dungeon-remix by NYRDS.
the class Splash method at.
public static void at(PointF p, final float dir, final float cone, final int color, int n) {
if (n <= 0) {
return;
}
Emitter emitter = GameScene.emitter();
emitter.pos(p);
FACTORY.color = color;
FACTORY.dir = dir;
FACTORY.cone = cone;
emitter.burst(FACTORY, n);
}
use of com.watabou.noosa.particles.Emitter in project pixel-dungeon-remix by NYRDS.
the class Splash method at.
public static void at(PointF p, final int color, int n) {
if (n <= 0) {
return;
}
Emitter emitter = GameScene.emitter();
emitter.pos(p);
FACTORY.color = color;
FACTORY.dir = -3.1415926f / 2;
FACTORY.cone = 3.1415926f;
emitter.burst(FACTORY, n);
}
Aggregations