use of com.badlogic.gdx.graphics.glutils.ShapeRenderer in project Alkahest-Coffee by AlkahestDev.
the class CoffeeServer method create.
@Override
public void create() {
batch = new SpriteBatch();
camView = new OrthographicCamera(Gdx.graphics.getWidth(), Gdx.graphics.getHeight());
camView.translate(Gdx.graphics.getWidth() / 2, Gdx.graphics.getHeight() / 2);
camView.update();
batch.setProjectionMatrix(camView.combined);
manager = new AssetManager();
shapeRenderer = new ShapeRenderer();
loadingMenu = new LoadingMenu(fonts, manager, camView);
readyLoadingBackground();
manager.load("tuzki.png", Texture.class);
manager.load("volcano-30238.png", Texture.class);
manager.load("4k-image-santiago.jpg", Texture.class);
manager.load("4914003-galaxy-wallpaper-png.png", Texture.class);
manager.load("pixmapTest.png", Texture.class);
manager.load("pixmapVisual.png", Texture.class);
BitmapFont dagger30 = new BitmapFont(Gdx.files.internal("fonts/dagger30.fnt"));
dagger30.getData().markupEnabled = true;
serverInfo = new ServerInfoMenu(fonts, manager, camView);
serverRunningMenu = new ServerRunningGameMenu(fonts, manager, camView);
fonts.add(new BitmapFontCache(dagger30));
}
Aggregations