public Animation frames( TextureFilm film, Object... frames ) { this.frames = new RectF[frames.length]; for (int i=0; i < frames.length; i++) { this.frames[i] = film.get( frames[i] ); } return this; }
public Animation frames( TextureFilm film, Object... frames ) { this.frames = new RectF[frames.length]; for (int i=0; i < frames.length; i++) { this.frames[i] = film.get( frames[i] ); } return this; }
public Animation frames( TextureFilm film, Object... frames ) { this.frames = new RectF[frames.length]; for (int i=0; i < frames.length; i++) { this.frames[i] = film.get( frames[i] ); } return this; }
public void frame( int image ){ frame( ItemSpriteSheet.film.get( image )); float height = ItemSpriteSheet.film.height( image ); //adds extra raise to very short items, so they are visible if (height < 8f){ perspectiveRaise = (5 + 8 - height) / 16f; } }
public void reset( int index ) { frame( film.get( index ) ); origin.set( width / 2, height / 2 ); phase = Phase.FADE_IN; duration = FADE_IN_TIME; passed = 0; }
public static Image tile( int index ) { Image img = new Image( instance.texture ); img.frame( instance.tileset.get( index ) ); return img; }
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 tile(int pos, int tile ) { RectF uv = instance.tileset.get( instance.getTileVisual( pos, tile, true ) ); if (uv == null) return null; Image img = new Image( instance.texture ); img.frame(uv); return img; }
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 tile(int pos, int tile ) { Image img = new Image( instance.texture ); img.frame( instance.tileset.get( instance.getTileVisual( pos, tile, true ) ) ); return img; }
public Image image(int tileX, int tileY){ if (!needsRender(tileX + mapWidth*tileY)){ return null; } else { Image img = new Image(texture); img.frame(tileset.get(data[tileX + mapWidth * tileY])); return img; } }
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 BuffIcon( Buff buff ){ super(); this.buff = buff; icon = new Image( texture ); icon.frame( film.get( buff.icon() ) ); add( icon ); }
public Tilemap( Object tx, TextureFilm tileset ) { super( 0, 0, 0, 0 ); this.texture = TextureCache.get( tx ); this.tileset = tileset; RectF r = tileset.get( 0 ); cellW = tileset.width( r ); cellH = tileset.height( r ); vertices = new float[16]; updated = new Rect(); }
public Tilemap( Object tx, TextureFilm tileset ) { super( 0, 0, 0, 0 ); this.texture = TextureCache.get( tx ); this.tileset = tileset; RectF r = tileset.get( 0 ); cellW = tileset.width( r ); cellH = tileset.height( r ); vertices = new float[16]; updated = new Rect(); }
public Tilemap( Object tx, TextureFilm tileset ) { super( 0, 0, 0, 0 ); this.texture = TextureCache.get( tx ); this.tileset = tileset; RectF r = tileset.get( 0 ); cellW = tileset.width( r ); cellH = tileset.height( r ); vertices = new float[16]; updated = new Rect(); }
public static Image avatar( HeroClass cl, int armorTier ) { RectF patch = tiers().get( armorTier ); Image avatar = new Image( cl.spritesheet() ); RectF frame = avatar.texture.uvRect( 1, 0, FRAME_WIDTH, FRAME_HEIGHT ); frame.shift( patch.left, patch.top ); avatar.frame( frame ); return avatar; } }
public static Image avatar( HeroClass cl, int armorTier ) { RectF patch = tiers().get( armorTier ); Image avatar = new Image( cl.spritesheet() ); RectF frame = avatar.texture.uvRect( 1, 0, FRAME_WIDTH, FRAME_HEIGHT ); frame.offset( patch.left, patch.top ); avatar.frame( frame ); return avatar; } }