Example #1
0
 public static void load() {
   if (MainActivity.mAct.isFinishing()) return;
   atlas = new TextureAtlas(5, 1024, 256);
   atlas.insert(link = new Texture("link.png", 9, 1));
   atlas.insert(dpad = new Texture("dpad.png"));
   atlas.insert(topTransUI = new Texture("topTransUI.png"));
   atlas.insert(map01 = new Texture("map01_tiles.png", 4, 1));
   atlas.complete();
 }
Example #2
0
  @Override
  public void onLoad() {
    atlas = new TextureAtlas(512, 1024);
    atlas.insert(backgroundTexture = new Texture("graphics/backgrounds/beach.png"));
    atlas.insert(explosionTexture = new Texture("graphics/sprites/explosion.png"));
    explosionTexture.setTileCount(5, 5);
    TextureManager.load(atlas);

    background = new FixedBackground(backgroundTexture);
  }