use of games.utils.GuiFactory in project Entitas-Java by Rubentxu.
the class GameSceneState method loadResources.
@Override
public void loadResources() {
this.skinManager = engine.getManager(SMGUIManager.class);
this.assetsManager = engine.getManager(BaseAssetsManager.class);
guiFactory = new GuiFactory(assetsManager, skin);
bodyBuilder = new BodyBuilder();
this.stage = new Stage();
stage.clear();
stage.getViewport().update(Gdx.graphics.getWidth(), Gdx.graphics.getHeight(), true);
Gdx.input.setInputProcessor(stage);
Gdx.app.log("Menu", "LoadResources");
assetsManager.loadTextureAtlas(SPRITE_ATLAS);
assetsManager.finishLoading();
}
Aggregations