Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(1 edit) (+1)

SpaceFloat Asset Management

SpaceFloat uses an instance of the AssetManager provided by libGDX to manage assets. This instance follow the lifecycle of the SpaceFloatGame instance and it is injected into the Screens as a dependence.

public class SpaceFloatGame extends Game {

    private AssetManager assetManager;

    public SpaceFloatGame() {
        assetManager = new AssetManager();
    }

    // ...

    @Override
    public void dispose() {
        assetManager.dispose();
    }
}

I will show you a fundamental use case in the next devlog presenting the LoadingScreen.