Exemplo n.º 1
0
 @Override
 public void dispose() {
   texture.dispose();
   batch.dispose();
   hero1Atlas.dispose();
   HUDBatch.dispose();
   font1.dispose();
 }
Exemplo n.º 2
0
  @Override
  public void dispose() {
    Gdx.input.setInputProcessor(null);

    if (disposeCount == 1) return;
    butBatch.dispose();
    splashBatch.dispose();
    logoMenuBatch.dispose();
    butAtlas.dispose();
    font1.dispose();
    butSkin.dispose();
    stage.dispose();
    disposeCount = 1;
  }
Exemplo n.º 3
0
 @Override
 public void dispose() {
   spriteBatch.dispose();
   background.dispose();
   logo.dispose();
   font.dispose();
 }
Exemplo n.º 4
0
 @Override
 public void dispose() {
   stage.dispose();
   game.dispose();
   skin.dispose();
   batch.dispose();
 }
 @Override
 public void dispose() {
   spriteBatch.dispose();
   background1.dispose();
   background2.dispose();
   background3.dispose();
 }
Exemplo n.º 6
0
 @Override
 public void dispose() {
   // TODO Auto-generated method stub
   font.dispose();
   shapeRenderer.dispose();
   batch.dispose();
 }
 @Override
 public void dispose() {
   super.dispose();
   spriteBatch.dispose();
   shapeRenderer.dispose();
   resourceManager.unloadAll();
 }
Exemplo n.º 8
0
  @Override
  public void dispose() {
    // TODO Auto-generated method stub
    Gdx.input.setInputProcessor(null);

    spritebatch.dispose();
  }
Exemplo n.º 9
0
 @Override
 public void dispose() {
   dropImage.dispose();
   bucketImage.dispose();
   dropSound.dispose();
   rainMusic.dispose();
   batch.dispose();
 }
Exemplo n.º 10
0
  /**
   * Is called by the application lifecycle when the game is shut down. Should dispose everything
   * that was allocated.
   */
  @Override
  public void dispose() {
    batch.dispose();
    StyleHelper.getInstance().dispose();

    // release catching of back key (no idea if necessary)
    Gdx.input.setCatchBackKey(false);
  }
Exemplo n.º 11
0
  @Override
  public void dispose() {
    super.dispose();

    res.dispose();
    textureAtlas.dispose();
    batch.dispose();
  }
Exemplo n.º 12
0
 @Override
 public void dispose() {
   Gdx.app.log(LOG, "Disposing screen: " + getName());
   uiStage.dispose();
   // skin.dispose();
   // reaktio.dispose();
   batch.dispose();
 }
Exemplo n.º 13
0
 @Override
 public void dispose() {
   world.dispose();
   batch.dispose();
   bodies.clear();
   mpHandler.dispose();
   super.dispose();
 }
Exemplo n.º 14
0
 /*
  * Dispose all objects used in this class
  * @see com.badlogic.gdx.Screen#dispose()
  */
 @Override
 public void dispose() {
   ownCamera = null;
   texture.dispose();
   batch.dispose();
   oldTime = 0;
   // toast = null;
 }
Exemplo n.º 15
0
 @Override
 public void dispose() {
   modelBatch.dispose();
   shadowBatch.dispose();
   shapeRenderer.dispose();
   spriteBatch.dispose();
   font.dispose();
   shadowLight.dispose();
 }
 @Override
 public void dispose() {
   // dispose of all the native resources
   dropImage.dispose();
   bucketImage.dispose();
   //        dropSound.dispose();
   //        rainMusic.dispose();
   batch.dispose();
 }
Exemplo n.º 17
0
 @Override
 public void dispose() {
   bigFont.dispose();
   hugeFont.dispose();
   sb.dispose();
   world.dispose();
   player.dispose();
   Globals.atlas.dispose();
 }
Exemplo n.º 18
0
  public void dispose() {
    blurTargetA.dispose();
    blurTargetB.dispose();
    blurShader.dispose();

    batch.dispose();

    shapeRenderer.dispose();
  }
Exemplo n.º 19
0
 @Override
 public void dispose() {
   timer.cancel();
   vialTexture.dispose();
   ballTexture.dispose();
   spriteBatch.dispose();
   font.dispose();
   world.dispose();
 }
Exemplo n.º 20
0
 @Override
 public void dispose() {
   batch.dispose();
   ui.dispose();
   fontLabel.dispose();
   stage.dispose();
   skin.dispose();
   tiledMap.dispose();
 }
Exemplo n.º 21
0
 public static void dispose() {
   modelBatch.dispose();
   spriteBatch.dispose();
   frameBuffer.dispose();
   tempBuffer.dispose();
   shaderProvider.dispose();
   for (ShaderProgram s : Bdx.matShaders.values()) {
     s.dispose();
   }
 }
Exemplo n.º 22
0
  @Override
  public void dispose() {
    batch.dispose();
    leftWallTextureAtlas.dispose();
    rightWallTextureAtlas.dispose();

    // batch.dispose();
    // texture.dispose();

  }
Exemplo n.º 23
0
 @Override
 public void dispose() {
   // Eliminar basura
   principal.dispose();
   batch.dispose();
   texturaBtnContinue.dispose();
   texturaBtnMenu.dispose();
   texturaFondo.dispose();
   this.efectoMuerteNinja.dispose();
   this.efectoClick.dispose();
 }
Exemplo n.º 24
0
  public void dispose() {

    try {

      spriteBatch.dispose();

      texture.dispose();
      textureRegions.clear();
    } catch (Exception e) {

    }
  }
Exemplo n.º 25
0
  @Override
  public void dispose() {
    if (mapRenderer != null) {
      mapRenderer.dispose();
      mapRenderer = null;
    }

    batch.dispose();
    shapeRenderer.dispose();
    box2DRenderer.dispose();
    //		particleFrameBuffer.dispose();
  }
Exemplo n.º 26
0
  @Override
  public void dispose() {
    Gdx.app.log(BeatBlaster.LOG, "Disposing screen: " + getName());

    // the following call disposes the screen's stage, but on my computer it
    // crashes the game so I commented it out; more info can be found at:
    // http://www.badlogicgames.com/forum/viewtopic.php?f=11&t=3624
    // stage.dispose();

    // as the collaborators are lazily loaded, they may be null
    if (font != null) font.dispose();
    if (batch != null) batch.dispose();
    if (skin != null) skin.dispose();
    if (atlas != null) atlas.dispose();
  }
Exemplo n.º 27
0
  @Override
  public void dispose() {

    planetTexture.dispose();
    backgroundTexture.dispose();
    planetCoreTexture.dispose();
    ballTexture.dispose();
    batch.dispose();
    font.dispose();

    // disposing bodies
    world.destroyBody(planetCoreModel);
    world.destroyBody(planetModel);
    for (int i = 0; i < MAX_BALLS; i++) world.destroyBody(ballModels[i]);
    world.dispose();
  }
Exemplo n.º 28
0
  @Override
  public void render(float delta) {
    super.render(delta);
    SpriteBatch batch = new SpriteBatch();

    BitmapFont font = new BitmapFont();
    font.getData().setScale(2f, 2f);
    font.setColor(Color.GREEN);

    batch.begin();
    font.draw(batch, Integer.toString(getGame().getHighScore()), 360, 310);
    font.draw(batch, Integer.toString(getGame().getCurrentScore()), 360, 280);
    batch.end();

    batch.dispose();
  }
  private TextureRegion createBgIcon(String atlas, String region) {
    TextureAtlas a =
        new TextureAtlas(
            Gdx.files.absolute(
                Ctx.project.getProjectPath()
                    + "/"
                    + Project.ATLASES_PATH
                    + "/1/"
                    + atlas
                    + ".atlas"));
    AtlasRegion r = a.findRegion(region);
    FrameBuffer fbo =
        new FrameBuffer(
            Format.RGBA8888, 200, (int) (r.getRegionHeight() * 200f / r.getRegionWidth()), false);

    SpriteBatch fboBatch = new SpriteBatch();
    fboBatch.setColor(Color.WHITE);
    OrthographicCamera camera = new OrthographicCamera();
    camera.setToOrtho(false, fbo.getWidth(), fbo.getHeight());
    fboBatch.setProjectionMatrix(camera.combined);

    Gdx.gl.glDisable(GL20.GL_SCISSOR_TEST);
    fbo.begin();
    fboBatch.begin();
    fboBatch.draw(r, 0, 0, fbo.getWidth(), fbo.getHeight());
    fboBatch.end();

    TextureRegion tex = ScreenUtils.getFrameBufferTexture(0, 0, fbo.getWidth(), fbo.getHeight());
    //		tex.flip(false, true);

    fbo.end();
    Gdx.gl.glEnable(GL20.GL_SCISSOR_TEST);

    fbo.dispose();
    a.dispose();
    fboBatch.dispose();

    return tex;
  }
Exemplo n.º 30
0
 @Override
 public void dispose() {
   batch.dispose();
   font.dispose();
 }