public SpellSprite() { super( Assets.SPELL_ICONS ); if (film == null) { film = new TextureFilm( texture, SIZE ); } }
public SpellSprite() { super( Assets.SPELL_ICONS ); if (film == null) { film = new TextureFilm( texture, SIZE, SIZE ); } }
public SpellSprite() { super( Assets.SPELL_ICONS ); if (film == null) { film = new TextureFilm( texture, SIZE ); } }
@Override protected void createChildren() { texture = TextureCache.get( Assets.BUFFS_SMALL ); film = new TextureFilm( texture, SIZE, SIZE ); }
public static TextureFilm tiers() { if (tiers == null) { SmartTexture texture = TextureCache.get( Assets.ROGUE ); tiers = new TextureFilm( texture, texture.width, FRAME_HEIGHT ); } return tiers; }
public static TextureFilm tiers() { if (tiers == null) { SmartTexture texture = TextureCache.get( Assets.BRIGAND ); tiers = new TextureFilm( texture, texture.width, FRAME_HEIGHT ); } return tiers; }
public Speck() { super(); texture( Assets.SPECKS ); if (film == null) { film = new TextureFilm( texture, SIZE, SIZE ); } origin.set( SIZE / 2f ); }
public Avatar( HeroClass cl ) { super( Assets.AVATARS ); frame( new TextureFilm( texture, WIDTH, HEIGHT ).get( cl.ordinal() ) ); } }
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; } }
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; } }
public Avatar( HeroClass cl ) { super( Assets.AVATARS ); frame( new TextureFilm( texture, WIDTH, HEIGHT ).get( cl.ordinal() ) ); } }
public Pet() { super( Assets.PET ); TextureFilm frames = new TextureFilm( texture, 16, 16 ); idle = new Animation( 2, true ); idle.frames( frames, 0, 0, 0, 0, 0, 0, 1 ); jump = new Animation( 10, false ); jump.frames( frames, 2, 3, 4, 5, 6 ); listener = this; play( idle ); }
public ShopkeeperTrollSprite() { super(); texture( Assets.KEEPER3); TextureFilm film = new TextureFilm( texture, 14, 14 ); idle = new Animation( 10, true ); idle.frames( film, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0 ); run = idle.clone(); die = idle.clone(); attack = idle.clone(); idle(); }
public ShopkeeperSprite() { super(); texture( Assets.KEEPER ); TextureFilm film = new TextureFilm( texture, 14, 14 ); idle = new Animation( 10, true ); idle.frames( film, 1, 1, 1, 1, 1, 0, 0, 0, 0 ); die = new Animation( 20, false ); die.frames( film, 0 ); run = idle.clone(); attack = idle.clone(); idle(); }
public BlacksmithSprite() { super(); texture( Assets.TROLL ); TextureFilm frames = new TextureFilm( texture, 13, 16 ); idle = new Animation( 15, true ); idle.frames( frames, 0, 0, 0, 0, 0, 0, 0, 1, 2, 2, 2, 3 ); run = new Animation( 20, true ); run.frames( frames, 0 ); die = new Animation( 20, false ); die.frames( frames, 0 ); play( idle ); }
public AmbitiousImpSprite() { super(); texture( Assets.NPC_IMP ); TextureFilm frames = new TextureFilm( texture, 16, 16 ); idle = new Animation( 5, true ); idle.frames(frames, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 4, 5, 6, 7); run = new Animation( 1, true ); run.frames( frames, 0 ); die = new Animation( 1, false ); die.frames( frames, 0 ); play( idle ); }
public WandmakerSprite() { super(); texture( Assets.MAKER ); TextureFilm frames = new TextureFilm( texture, 12, 14 ); idle = new Animation( 10, true ); idle.frames( frames, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 3, 3, 3, 3, 3, 2, 1 ); run = new Animation( 20, true ); run.frames( frames, 0 ); die = new Animation( 20, false ); die.frames( frames, 0 ); play( idle ); }
public BlacksmithSprite() { super(); texture( Assets.TROLL ); TextureFilm frames = new TextureFilm( texture, 13, 16 ); idle = new Animation( 15, true ); idle.frames( frames, 0, 0, 0, 0, 0, 0, 0, 1, 2, 2, 2, 3 ); run = new Animation( 20, true ); run.frames( frames, 0 ); die = new Animation( 20, false ); die.frames( frames, 0 ); play( idle ); }
public WandmakerSprite() { super(); texture( Assets.MAKER ); TextureFilm frames = new TextureFilm( texture, 12, 14 ); idle = new Animation( 10, true ); idle.frames( frames, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 3, 3, 3, 3, 3, 2, 1 ); run = new Animation( 20, true ); run.frames( frames, 0 ); die = new Animation( 20, false ); die.frames( frames, 0 ); play( idle ); }
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(); }