Examples of findRegions()


Examples of com.badlogic.gdx.graphics.g2d.TextureAtlas.findRegions()

      props.put("tilewidth", tilewidth);
      props.put("tileheight", tileheight);
      props.put("margin", margin);
      props.put("spacing", spacing);

      for (AtlasRegion region : atlas.findRegions(regionsName)) {
        // handle unused tile ids
        if (region != null) {
          StaticTiledMapTile tile = new StaticTiledMapTile(region);
          int tileid = firstgid + region.index;
          tile.setId(tileid);
View Full Code Here

Examples of com.badlogic.gdx.graphics.g2d.TextureAtlas.findRegions()

      break;
    default:
            break;
    }

        animation = new Animation(0.2f, atlas.findRegions(strType));
    currentFrame = animation.getKeyFrame(0);
    position = new Vector2(x, y);
  }
 
  public void render(SpriteBatch batch) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.