Example usage for com.badlogic.gdx Application getFiles

List of usage examples for com.badlogic.gdx Application getFiles

Introduction

In this page you can find the example usage for com.badlogic.gdx Application getFiles.

Prototype

public Files getFiles();

Source Link

Usage

From source file:com.davidykay.shootout.screens.GameLoop.java

License:Apache License

public GameLoop(Application app) {
    simulation = new Simulation();
    simulation.listener = this;
    renderer = new Renderer(app);
    explosion = app.getAudio()//  w  ww .jav a 2  s . co m
            .newSound(app.getFiles().getFileHandle("data/Echoing Boom.ogg", FileType.Internal));
    pop = app.getAudio().newSound(app.getFiles().getFileHandle("data/Dull Pop.ogg", FileType.Internal));
    shot = app.getAudio().newSound(app.getFiles().getFileHandle("data/Mid Laser.ogg", FileType.Internal));
    ray = app.getAudio().newSound(app.getFiles().getFileHandle("data/Long Laser.ogg", FileType.Internal));
}

From source file:org.illarion.engine.backend.gdx.GdxAssets.java

License:Open Source License

/**
 * Create a new instance of the libGDX assets management.
 *
 * @param gdxApplication the libGDX application this asset manager is bound to
 * @param container      the game container
 *///from   w  ww . j  a v  a  2 s  .co  m
GdxAssets(@Nonnull final Application gdxApplication, @Nonnull final GameContainer container) {
    this.container = container;
    textureManager = new GdxTextureManager();
    fontManager = new GdxFontManager(gdxApplication.getFiles(), textureManager);
    cursorManager = new GdxLwjglCursorManager(gdxApplication.getFiles());
    soundsManager = new GdxSoundsManager(gdxApplication.getFiles(), gdxApplication.getAudio());
    spriteFactory = new GdxSpriteFactory();
    effectManager = new GdxEffectManager(gdxApplication.getFiles());
}