use of com.watabou.noosa.TextureFilm in project pixel-dungeon by watabou.
the class BuffIndicator method createChildren.
@Override
protected void createChildren() {
texture = TextureCache.get(Assets.BUFFS_SMALL);
film = new TextureFilm(texture, SIZE, SIZE);
}
use of com.watabou.noosa.TextureFilm in project pixel-dungeon by watabou.
the class HeroSprite method updateArmor.
public void updateArmor() {
TextureFilm film = new TextureFilm(tiers(), ((Hero) ch).tier(), FRAME_WIDTH, FRAME_HEIGHT);
idle = new Animation(1, true);
idle.frames(film, 0, 0, 0, 1, 0, 0, 1, 1);
run = new Animation(RUN_FRAMERATE, true);
run.frames(film, 2, 3, 4, 5, 6, 7);
die = new Animation(20, false);
die.frames(film, 8, 9, 10, 11, 12, 11);
attack = new Animation(15, false);
attack.frames(film, 13, 14, 15, 0);
zap = attack.clone();
operate = new Animation(8, false);
operate.frames(film, 16, 17, 16, 17);
fly = new Animation(1, true);
fly.frames(film, 18);
read = new Animation(20, false);
read.frames(film, 19, 20, 20, 20, 20, 20, 20, 20, 20, 19);
}
use of com.watabou.noosa.TextureFilm in project pixel-dungeon by watabou.
the class MirrorSprite method updateArmor.
public void updateArmor(int tier) {
TextureFilm film = new TextureFilm(HeroSprite.tiers(), tier, FRAME_WIDTH, FRAME_HEIGHT);
idle = new Animation(1, true);
idle.frames(film, 0, 0, 0, 1, 0, 0, 1, 1);
run = new Animation(20, true);
run.frames(film, 2, 3, 4, 5, 6, 7);
die = new Animation(20, false);
die.frames(film, 0);
attack = new Animation(15, false);
attack.frames(film, 13, 14, 15, 0);
idle();
}
use of com.watabou.noosa.TextureFilm in project pixel-dungeon by watabou.
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.TextureFilm in project pixel-dungeon by watabou.
the class HeroSprite method tiers.
public static TextureFilm tiers() {
if (tiers == null) {
SmartTexture texture = TextureCache.get(Assets.ROGUE);
tiers = new TextureFilm(texture, texture.width, FRAME_HEIGHT);
}
return tiers;
}
Aggregations