Search in sources :

Example 6 with BitmapFontCache

use of com.badlogic.gdx.graphics.g2d.BitmapFontCache 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

BitmapFontCache (com.badlogic.gdx.graphics.g2d.BitmapFontCache)6 BitmapFont (com.badlogic.gdx.graphics.g2d.BitmapFont)4 SpriteBatch (com.badlogic.gdx.graphics.g2d.SpriteBatch)3 AssetManager (com.badlogic.gdx.assets.AssetManager)2 ShapeRenderer (com.badlogic.gdx.graphics.glutils.ShapeRenderer)2 PlayerSoldier (me.dumfing.multiplayerTools.PlayerSoldier)2 Color (com.badlogic.gdx.graphics.Color)1 OrthographicCamera (com.badlogic.gdx.graphics.OrthographicCamera)1 GlyphRun (com.badlogic.gdx.graphics.g2d.GlyphLayout.GlyphRun)1 TextureAtlas (com.badlogic.gdx.graphics.g2d.TextureAtlas)1 Rectangle (com.badlogic.gdx.math.Rectangle)1 LoadingMenu (me.dumfing.menus.LoadingMenu)1 ServerInfoMenu (me.dumfing.menus.ServerInfoMenu)1 ServerRunningGameMenu (me.dumfing.menus.ServerRunningGameMenu)1 MultiplayerClient (me.dumfing.multiplayerTools.MultiplayerClient)1 WorldMap (me.dumfing.multiplayerTools.WorldMap)1