Search in sources :

Example 1 with ServerRunningGameMenu

use of me.dumfing.menus.ServerRunningGameMenu 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));
}
Also used : AssetManager(com.badlogic.gdx.assets.AssetManager) ServerInfoMenu(me.dumfing.menus.ServerInfoMenu) OrthographicCamera(com.badlogic.gdx.graphics.OrthographicCamera) ServerRunningGameMenu(me.dumfing.menus.ServerRunningGameMenu) BitmapFont(com.badlogic.gdx.graphics.g2d.BitmapFont) SpriteBatch(com.badlogic.gdx.graphics.g2d.SpriteBatch) ShapeRenderer(com.badlogic.gdx.graphics.glutils.ShapeRenderer) BitmapFontCache(com.badlogic.gdx.graphics.g2d.BitmapFontCache) LoadingMenu(me.dumfing.menus.LoadingMenu)

Aggregations

AssetManager (com.badlogic.gdx.assets.AssetManager)1 OrthographicCamera (com.badlogic.gdx.graphics.OrthographicCamera)1 BitmapFont (com.badlogic.gdx.graphics.g2d.BitmapFont)1 BitmapFontCache (com.badlogic.gdx.graphics.g2d.BitmapFontCache)1 SpriteBatch (com.badlogic.gdx.graphics.g2d.SpriteBatch)1 ShapeRenderer (com.badlogic.gdx.graphics.glutils.ShapeRenderer)1 LoadingMenu (me.dumfing.menus.LoadingMenu)1 ServerInfoMenu (me.dumfing.menus.ServerInfoMenu)1 ServerRunningGameMenu (me.dumfing.menus.ServerRunningGameMenu)1