use of com.watabou.noosa.Image in project pixel-dungeon-remix by NYRDS.
the class BadgeBanner method image.
public static Image image(int index) {
Image image = new Image(Assets.BADGES);
if (atlas == null) {
atlas = new TextureFilm(image.texture, 16, 16);
}
image.frame(atlas.get(index));
return image;
}
use of com.watabou.noosa.Image in project pixel-dungeon-remix by NYRDS.
the class Fireball method createChildren.
@Override
protected void createChildren() {
sparks = new Group();
add(sparks);
bLight = new Image(Assets.FIREBALL);
bLight.frame(BLIGHT);
bLight.origin.set(bLight.width / 2);
bLight.angularSpeed = -90;
add(bLight);
emitter = new Emitter();
emitter.pour(new Emitter.Factory() {
@Override
public void emit(Emitter emitter, int index, float x, float y) {
Flame p = (Flame) emitter.recycle(Flame.class);
p.reset();
p.x = x - p.width / 2;
p.y = y - p.height / 2;
}
}, 0.1f);
add(emitter);
fLight = new Image(Assets.FIREBALL);
fLight.frame(FLIGHT);
fLight.origin.set(fLight.width / 2);
fLight.angularSpeed = 360;
add(fLight);
bLight.texture.filter(Texture.LINEAR, Texture.LINEAR);
}
use of com.watabou.noosa.Image in project pixel-dungeon-remix by NYRDS.
the class ClassicDungeonTilemap method tile.
@Override
public Image tile(int pos) {
Image img = new Image(getTexture());
img.frame(getTileset().get(level.map[pos]));
return img;
}
Aggregations