use of com.watabou.noosa.particles.Emitter in project pixel-dungeon by watabou.
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 by watabou.
the class BlacksmithSprite method link.
@Override
public void link(Char ch) {
super.link(ch);
emitter = new Emitter();
emitter.autoKill = false;
emitter.pos(x + 7, y + 12);
parent.add(emitter);
}
use of com.watabou.noosa.particles.Emitter in project pixel-dungeon by watabou.
the class CharSprite method centerEmitter.
public Emitter centerEmitter() {
Emitter emitter = GameScene.emitter();
emitter.pos(center());
return emitter;
}
use of com.watabou.noosa.particles.Emitter in project pixel-dungeon by watabou.
the class CharSprite method bottomEmitter.
public Emitter bottomEmitter() {
Emitter emitter = GameScene.emitter();
emitter.pos(x, y + height, width, 0);
return emitter;
}
use of com.watabou.noosa.particles.Emitter in project shattered-pixel-dungeon-gdx by 00-Evan.
the class CellEmitter method center.
public static Emitter center(int cell) {
PointF p = DungeonTilemap.tileToWorld(cell);
Emitter emitter = GameScene.emitter();
emitter.pos(p.x + DungeonTilemap.SIZE / 2, p.y + DungeonTilemap.SIZE / 2);
return emitter;
}
Aggregations