Search in sources :

Example 31 with ShapeRenderer

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));
}
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

ShapeRenderer (com.badlogic.gdx.graphics.glutils.ShapeRenderer)31 SpriteBatch (com.badlogic.gdx.graphics.g2d.SpriteBatch)16 BitmapFont (com.badlogic.gdx.graphics.g2d.BitmapFont)12 OrthographicCamera (com.badlogic.gdx.graphics.OrthographicCamera)10 Texture (com.badlogic.gdx.graphics.Texture)8 TextureRegion (com.badlogic.gdx.graphics.g2d.TextureRegion)7 Stage (com.badlogic.gdx.scenes.scene2d.Stage)5 Label (com.badlogic.gdx.scenes.scene2d.ui.Label)5 ScreenViewport (com.badlogic.gdx.utils.viewport.ScreenViewport)5 InputAdapter (com.badlogic.gdx.InputAdapter)4 AssetManager (com.badlogic.gdx.assets.AssetManager)4 PerspectiveCamera (com.badlogic.gdx.graphics.PerspectiveCamera)3 TextureAtlas (com.badlogic.gdx.graphics.g2d.TextureAtlas)3 Model (com.badlogic.gdx.graphics.g3d.Model)3 TmxMapLoader (com.badlogic.gdx.maps.tiled.TmxMapLoader)3 Animation (com.badlogic.gdx.graphics.g2d.Animation)2 BitmapFontCache (com.badlogic.gdx.graphics.g2d.BitmapFontCache)2 FreeTypeFontGenerator (com.badlogic.gdx.graphics.g2d.freetype.FreeTypeFontGenerator)2 FreeTypeFontParameter (com.badlogic.gdx.graphics.g2d.freetype.FreeTypeFontGenerator.FreeTypeFontParameter)2 OrthogonalTiledMapRenderer (com.badlogic.gdx.maps.tiled.renderers.OrthogonalTiledMapRenderer)2