Search in sources :

Example 26 with Emitter

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);
}
Also used : Emitter(com.watabou.noosa.particles.Emitter)

Example 27 with Emitter

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);
}
Also used : Emitter(com.watabou.noosa.particles.Emitter)

Example 28 with 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;
}
Also used : Emitter(com.watabou.noosa.particles.Emitter)

Example 29 with 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;
}
Also used : Emitter(com.watabou.noosa.particles.Emitter)

Example 30 with 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;
}
Also used : Emitter(com.watabou.noosa.particles.Emitter) PointF(com.watabou.utils.PointF)

Aggregations

Emitter (com.watabou.noosa.particles.Emitter)48 PointF (com.watabou.utils.PointF)9 Image (com.watabou.noosa.Image)6 Group (com.watabou.noosa.Group)4 BitmapText (com.watabou.noosa.BitmapText)2 BlobEmitter (com.watabou.pixeldungeon.effects.BlobEmitter)2 ItemSprite (com.watabou.pixeldungeon.sprites.ItemSprite)2 WndHeroSpells (com.nyrds.pixeldungeon.windows.WndHeroSpells)1 BlobEmitter (com.shatteredpixel.shatteredpixeldungeon.effects.BlobEmitter)1 CellEmitter (com.shatteredpixel.shatteredpixeldungeon.effects.CellEmitter)1 Touch (com.watabou.input.Touchscreen.Touch)1 CompositeTextureImage (com.watabou.noosa.CompositeTextureImage)1 NinePatch (com.watabou.noosa.NinePatch)1 TouchArea (com.watabou.noosa.TouchArea)1 BitmaskEmitter (com.watabou.noosa.particles.BitmaskEmitter)1 Barkskin (com.watabou.pixeldungeon.actors.buffs.Barkskin)1 Hero (com.watabou.pixeldungeon.actors.hero.Hero)1 CellEmitter (com.watabou.pixeldungeon.effects.CellEmitter)1 Dewdrop (com.watabou.pixeldungeon.items.Dewdrop)1 Herbalism (com.watabou.pixeldungeon.items.rings.RingOfHerbalism.Herbalism)1