Refactored LibGDX Client

main
Jonah Bauer 3 years ago
parent 70e03a1e9e
commit 3c1a716518

@ -1,27 +1,36 @@
package eu.jonahbauer.wizard.client.libgdx;
import com.badlogic.gdx.Game;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.audio.Music;
import com.badlogic.gdx.graphics.Pixmap;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import eu.jonahbauer.wizard.client.libgdx.screens.MainMenuScreen;
public class WizardGame extends Game {
public static final int HEIGHT = 1010;
public static final int WIDTH = 1920;
public static final int HEIGHT = 1080;
public SpriteBatch batch;
@Override
public void create () {
batch = new SpriteBatch();
// background music
Music backgroundMusic = Gdx.audio.newMusic(Gdx.files.internal("background.wav"));
backgroundMusic.setLooping(true);
backgroundMusic.setVolume(0.07f);
backgroundMusic.play();
// set cursor
Pixmap cursor = new Pixmap(Gdx.files.internal("cursor.png"));
Gdx.graphics.setCursor(Gdx.graphics.newCursor(cursor, 0, 0));
cursor.dispose();
this.setScreen(new MainMenuScreen(this));
}
public WizardGame getGame() {
return this;
}
@Override
public void dispose () {
}

@ -1,27 +1,13 @@
package eu.jonahbauer.wizard.client.libgdx.screens;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Screen;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.scenes.scene2d.InputEvent;
import com.badlogic.gdx.scenes.scene2d.InputListener;
import com.badlogic.gdx.scenes.scene2d.Stage;
import com.badlogic.gdx.scenes.scene2d.ui.Skin;
import com.badlogic.gdx.scenes.scene2d.ui.TextButton;
import com.badlogic.gdx.scenes.scene2d.ui.TextField;
import com.badlogic.gdx.utils.viewport.ScreenViewport;
import com.badlogic.gdx.scenes.scene2d.utils.ClickListener;
import eu.jonahbauer.wizard.client.libgdx.WizardGame;
public class CreateGameScreen implements Screen {
Texture background;
Texture topLeft;
Texture topRight;
Texture bottomLeft;
Texture bottomRight;
Texture wizard;
public class CreateGameScreen extends MenuScreen {
TextButton backButton;
TextButton continueButton;
@ -32,27 +18,27 @@ public class CreateGameScreen implements Screen {
TextField option5;
TextField option6;
Skin skin;
Stage stage;
public WizardGame game;
ClickListener listener = new ClickListener() {
@Override
public void clicked(InputEvent event, float x, float y) {
var target = event.getListenerActor();
if (target == backButton) {
game.setScreen(new SessionListScreen(game));
sfxClick();
} else if (target == continueButton) {
game.setScreen(new WaitingScreen(game));
sfxClick();
}
}
};
public CreateGameScreen(WizardGame game) {
this.game = game;
super(game);
}
@Override
public void show() {
skin = new Skin(Gdx.files.internal("skin/uiskin.json"));
stage = new Stage(new ScreenViewport());
background = new Texture(Gdx.files.internal("background.png"));
topLeft = new Texture(Gdx.files.internal("ecke_lo.png"));
topRight = new Texture(Gdx.files.internal("ecke_ro.png"));
bottomLeft = new Texture(Gdx.files.internal("ecke_lu.png"));
bottomRight = new Texture(Gdx.files.internal("ecke_ru.png"));
wizard = new Texture(Gdx.files.internal("schriftzug_s.png"));
super.show();
backButton = new TextButton("Zurück", skin);
backButton.setPosition(WizardGame.WIDTH * 0.3f, WizardGame.HEIGHT * 0.18f);
@ -80,7 +66,6 @@ public class CreateGameScreen implements Screen {
option6.setPosition(option4.getX(), option3.getY());
option6.setSize(250, continueButton.getHeight());
Gdx.input.setInputProcessor(stage);
stage.addActor(backButton);
stage.addActor(continueButton);
@ -91,62 +76,10 @@ public class CreateGameScreen implements Screen {
stage.addActor(option5);
stage.addActor(option6);
backButton.addListener(new InputListener() {
@Override
public boolean touchDown(InputEvent event, float x, float y, int pointer, int button) {
MainMenuScreen.buttonClickSound.play(0.6f);
game.setScreen(new SessionListScreen(game));
return true;
}
});
continueButton.addListener(new InputListener() {
@Override
public boolean touchDown(InputEvent event, float x, float y, int pointer, int button) {
MainMenuScreen.buttonClickSound.play(0.6f);
game.setScreen(new WaitingScreen(game));
return true;
}
});
backButton.addListener(listener);
continueButton.addListener(listener);
}
@Override
public void render(float delta) {
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
stage.act(Gdx.graphics.getDeltaTime());
this.game.batch.begin();
this.game.batch.draw(background, 0, 0);
this.game.batch.draw(topLeft, 0, WizardGame.HEIGHT - topLeft.getHeight());
this.game.batch.draw(topRight, WizardGame.WIDTH - topRight.getWidth(), WizardGame.HEIGHT - topRight.getHeight());
this.game.batch.draw(bottomLeft, 0, 0);
this.game.batch.draw(bottomRight, WizardGame.WIDTH - bottomRight.getWidth(), 0);
this.game.batch.draw(wizard, (WizardGame.WIDTH / 2f) - (wizard.getWidth() / 2f), WizardGame.HEIGHT * 0.75f);
this.game.batch.end();
stage.draw();
}
@Override
public void resize(int width, int height) {
}
@Override
public void pause() {
}
@Override
public void resume() {
}
@Override
public void hide() {
}
@Override
public void dispose() {
}
protected void renderInternal(float delta) {}
}

@ -1,147 +1,67 @@
package eu.jonahbauer.wizard.client.libgdx.screens;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Screen;
import com.badlogic.gdx.audio.Music;
import com.badlogic.gdx.audio.Sound;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.Pixmap;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.scenes.scene2d.InputEvent;
import com.badlogic.gdx.scenes.scene2d.InputListener;
import com.badlogic.gdx.scenes.scene2d.Stage;
import com.badlogic.gdx.scenes.scene2d.ui.Skin;
import com.badlogic.gdx.scenes.scene2d.ui.Table;
import com.badlogic.gdx.scenes.scene2d.ui.TextButton;
import com.badlogic.gdx.utils.viewport.ScreenViewport;
import com.badlogic.gdx.scenes.scene2d.utils.ClickListener;
import eu.jonahbauer.wizard.client.libgdx.WizardGame;
public class MainMenuScreen implements Screen {
public class MainMenuScreen extends MenuScreen {
public static Music backgroundSound = Gdx.audio.newMusic(Gdx.files.internal("background.wav"));
public static Sound buttonClickSound = Gdx.audio.newSound(Gdx.files.internal("button_click_s.mp3"));
Pixmap pm;
Texture background;
Texture topLeft;
Texture topRight;
Texture bottomLeft;
Texture bottomRight;
Texture wizard;
Texture leftSymbol;
Texture middleSymbol;
Texture rightSymbol;
Texture[] symbols;
TextButton chooseServerButton;
TextButton exitButton;
Skin skin;
Stage stage;
public WizardGame game;
ClickListener listener = new ClickListener() {
@Override
public void clicked(InputEvent event, float x, float y) {
var target = event.getListenerActor();
if (target == chooseServerButton) {
game.setScreen(new ServerScreen(game));
sfxClick();
} else if (target == exitButton) {
sfxClick();
Gdx.app.exit();
}
}
};
public MainMenuScreen(WizardGame game) {
this.game = game;
super(game);
}
@Override
public void show() {
pm = new Pixmap(Gdx.files.internal("cursor.png"));
Gdx.graphics.setCursor(Gdx.graphics.newCursor(pm, 0, 0));
pm.dispose();
super.show();
backgroundSound.setLooping(true);
backgroundSound.setVolume(0.07f);
backgroundSound.play();
skin = new Skin(Gdx.files.internal("skin/uiskin.json"));
stage = new Stage(new ScreenViewport());
background = new Texture(Gdx.files.internal("background.png"));
leftSymbol = new Texture(Gdx.files.internal("symbol3.png"));
middleSymbol = new Texture(Gdx.files.internal("symbol1.png"));
rightSymbol = new Texture(Gdx.files.internal("symbol2.png"));
topLeft = new Texture(Gdx.files.internal("ecke_lo.png"));
topRight = new Texture(Gdx.files.internal("ecke_ro.png"));
bottomLeft = new Texture(Gdx.files.internal("ecke_lu.png"));
bottomRight = new Texture(Gdx.files.internal("ecke_ru.png"));
wizard = new Texture(Gdx.files.internal("schriftzug.png"));
symbols = new Texture[4];
symbols[0] = new Texture(Gdx.files.internal("symbol0.png"));
symbols[1] = new Texture(Gdx.files.internal("symbol1.png"));
symbols[2] = new Texture(Gdx.files.internal("symbol2.png"));
symbols[3] = new Texture(Gdx.files.internal("symbol3.png"));
chooseServerButton = new TextButton("Spiel beitreten", skin);
chooseServerButton.setPosition((WizardGame.WIDTH / 2f) - (chooseServerButton.getWidth() / 2f), WizardGame.HEIGHT * 0.35f);
chooseServerButton.setPosition((WizardGame.WIDTH - chooseServerButton.getWidth()) / 2f, 192 + 504 - 120f - 125f);
exitButton = new TextButton("Verlassen", skin);
exitButton.setPosition(WizardGame.WIDTH / 2f - exitButton.getWidth() / 2f, chooseServerButton.getY() - WizardGame.HEIGHT * 0.1f);
exitButton.setPosition((WizardGame.WIDTH - exitButton.getWidth()) / 2f, 192 + 120f);
Gdx.input.setInputProcessor(stage);
stage.addActor(chooseServerButton);
stage.addActor(exitButton);
chooseServerButton.addListener(new InputListener() {
@Override
public boolean touchDown(InputEvent event, float x, float y, int pointer, int button) {
buttonClickSound.play(0.6f);
game.setScreen(new ServerScreen(game));
return true;
}
});
exitButton.addListener(new InputListener() {
@Override
public boolean touchDown(InputEvent event, float x, float y, int pointer, int button) {
buttonClickSound.play(0.6f);
try {
Thread.sleep(450);
} catch (InterruptedException e) {
//e.printStackTrace();
}
Gdx.app.exit();
return true;
}
});
}
@Override
public void render(float delta) {
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
stage.act(Gdx.graphics.getDeltaTime());
this.game.batch.begin();
this.game.batch.draw(background, 0, 0);
this.game.batch.draw(topLeft, 0, WizardGame.HEIGHT - topLeft.getHeight());
this.game.batch.draw(topRight, WizardGame.WIDTH - topRight.getWidth(), WizardGame.HEIGHT - topRight.getHeight());
this.game.batch.draw(bottomLeft, 0, 0);
this.game.batch.draw(bottomRight, WizardGame.WIDTH - bottomRight.getWidth(), 0);
this.game.batch.draw(wizard, (WizardGame.WIDTH / 2f) - (wizard.getWidth() / 2f), WizardGame.HEIGHT * 0.73f);
this.game.batch.draw(leftSymbol, WizardGame.WIDTH * 0.32f, WizardGame.HEIGHT * 0.45f);
this.game.batch.draw(middleSymbol, WizardGame.WIDTH / 2f - middleSymbol.getWidth() / 2f, WizardGame.HEIGHT * 0.49f);
this.game.batch.draw(rightSymbol, WizardGame.WIDTH * 0.68f - rightSymbol.getWidth(), WizardGame.HEIGHT * 0.45f);
this.game.batch.end();
stage.draw();
}
@Override
public void resize(int width, int height) {
}
@Override
public void pause() {
}
@Override
public void resume() {
}
@Override
public void hide() {
chooseServerButton.addListener(listener);
exitButton.addListener(listener);
}
@Override
public void dispose() {
protected void renderInternal(float delta) {
int width = 160, height = 224;
int left = 384, right = 384, top = 384, bottom = 192;
this.game.batch.draw(symbols[0], left, bottom, width, height);
this.game.batch.draw(symbols[1], left, WizardGame.HEIGHT - top - height, width, height);
this.game.batch.draw(symbols[2], WizardGame.WIDTH - right - width, bottom, width, height);
this.game.batch.draw(symbols[3], WizardGame.WIDTH - right - width, WizardGame.HEIGHT - top - height, width, height);
}
}

@ -0,0 +1,101 @@
package eu.jonahbauer.wizard.client.libgdx.screens;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Screen;
import com.badlogic.gdx.audio.Sound;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.scenes.scene2d.Stage;
import com.badlogic.gdx.scenes.scene2d.ui.Skin;
import com.badlogic.gdx.utils.viewport.FitViewport;
import com.badlogic.gdx.utils.viewport.Viewport;
import eu.jonahbauer.wizard.client.libgdx.WizardGame;
public abstract class MenuScreen implements Screen {
protected WizardGame game;
private Sound buttonClickSound;
private Viewport viewport;
private Texture title;
private Texture background;
private Texture[] corners; // counterclockwise starting top left
protected Skin skin;
protected Stage stage;
public MenuScreen(WizardGame game) {
this.game = game;
}
@Override
public void show() {
this.buttonClickSound = Gdx.audio.newSound(Gdx.files.internal("button_click_s.mp3"));
this.title = new Texture(Gdx.files.internal("title.png"));
this.background = new Texture(Gdx.files.internal("background.png"));
this.corners = new Texture[4];
this.corners[0] = new Texture(Gdx.files.internal("ecke_lo.png"));
this.corners[1] = new Texture(Gdx.files.internal("ecke_lu.png"));
this.corners[2] = new Texture(Gdx.files.internal("ecke_ru.png"));
this.corners[3] = new Texture(Gdx.files.internal("ecke_ro.png"));
this.viewport = new FitViewport(WizardGame.WIDTH, WizardGame.HEIGHT);
this.skin = new Skin(Gdx.files.internal("skin/uiskin.json"));
this.stage = new Stage(viewport);
}
@Override
public final void render(float delta) {
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
viewport.getCamera().update();
game.batch.setProjectionMatrix(viewport.getCamera().combined);
game.batch.begin();
game.batch.draw(background, 0, 0);
game.batch.draw(corners[0], 0, WizardGame.HEIGHT - corners[0].getHeight());
game.batch.draw(corners[1], 0, 0);
game.batch.draw(corners[2], WizardGame.WIDTH - corners[2].getWidth(), 0);
game.batch.draw(corners[3], WizardGame.WIDTH - corners[3].getWidth(), WizardGame.HEIGHT - corners[3].getHeight());
game.batch.draw(title, 555, WizardGame.HEIGHT - 192 - 96, 810, 192);
renderInternal(delta);
game.batch.end();
stage.act(Gdx.graphics.getDeltaTime());
stage.draw();
}
protected abstract void renderInternal(float delta);
@Override
public final void resize(int width, int height) {
viewport.update(width, height);
}
@Override
public void pause() {
}
@Override
public void resume() {
}
@Override
public void hide() {
}
@Override
public void dispose() {
}
protected void sfxClick() {
buttonClickSound.play(0.6f);
}
}

@ -1,27 +1,14 @@
package eu.jonahbauer.wizard.client.libgdx.screens;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Screen;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.scenes.scene2d.Group;
import com.badlogic.gdx.scenes.scene2d.InputEvent;
import com.badlogic.gdx.scenes.scene2d.InputListener;
import com.badlogic.gdx.scenes.scene2d.Stage;
import com.badlogic.gdx.scenes.scene2d.ui.Skin;
import com.badlogic.gdx.scenes.scene2d.ui.TextButton;
import com.badlogic.gdx.scenes.scene2d.ui.TextField;
import com.badlogic.gdx.utils.viewport.ScreenViewport;
import com.badlogic.gdx.scenes.scene2d.utils.ClickListener;
import eu.jonahbauer.wizard.client.libgdx.WizardGame;
public class ServerScreen implements Screen {
Texture background;
Texture topLeft;
Texture topRight;
Texture bottomLeft;
Texture bottomRight;
Texture wizard;
public class ServerScreen extends MenuScreen {
TextButton backButton;
TextButton continueButton;
@ -32,27 +19,27 @@ public class ServerScreen implements Screen {
Group inputs;
Skin skin;
Stage stage;
public WizardGame game;
ClickListener listener = new ClickListener() {
@Override
public void clicked(InputEvent event, float x, float y) {
var target = event.getListenerActor();
if (target == backButton) {
game.setScreen(new MainMenuScreen(game));
sfxClick();
} else if (target == continueButton) {
game.setScreen(new SessionListScreen(game));
sfxClick();
}
}
};
public ServerScreen(WizardGame game) {
this.game = game;
super(game);
}
@Override
public void show() {
skin = new Skin(Gdx.files.internal("skin/uiskin.json"));
stage = new Stage(new ScreenViewport());
background = new Texture(Gdx.files.internal("background.png"));
topLeft = new Texture(Gdx.files.internal("ecke_lo.png"));
topRight = new Texture(Gdx.files.internal("ecke_ro.png"));
bottomLeft = new Texture(Gdx.files.internal("ecke_lu.png"));
bottomRight = new Texture(Gdx.files.internal("ecke_ru.png"));
wizard = new Texture(Gdx.files.internal("schriftzug_s.png"));
super.show();
backButton = new TextButton("Zurück", skin);
backButton.setPosition(WizardGame.WIDTH * 0.3f, WizardGame.HEIGHT * 0.18f);
@ -84,63 +71,10 @@ public class ServerScreen implements Screen {
stage.addActor(inputs);
//stage.addActor(port);
backButton.addListener(new InputListener() {
@Override
public boolean touchDown(InputEvent event, float x, float y, int pointer, int button) {
MainMenuScreen.buttonClickSound.play(0.6f);
game.setScreen(new MainMenuScreen(game));
return true;
}
});
continueButton.addListener(new InputListener() {
@Override
public boolean touchDown(InputEvent event, float x, float y, int pointer, int button) {
MainMenuScreen.buttonClickSound.play(0.6f);
game.setScreen(new SessionListScreen(game));
return true;
}
});
}
@Override
public void render(float delta) {
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
stage.act(Gdx.graphics.getDeltaTime());
this.game.batch.begin();
this.game.batch.draw(background, 0, 0);
this.game.batch.draw(topLeft, 0, WizardGame.HEIGHT - topLeft.getHeight());
this.game.batch.draw(topRight, WizardGame.WIDTH - topRight.getWidth(), WizardGame.HEIGHT - topRight.getHeight());
this.game.batch.draw(bottomLeft, 0, 0);
this.game.batch.draw(bottomRight, WizardGame.WIDTH - bottomRight.getWidth(), 0);
this.game.batch.draw(wizard, (WizardGame.WIDTH / 2f) - (wizard.getWidth() / 2f), WizardGame.HEIGHT * 0.75f);
this.game.batch.end();
stage.draw();
}
@Override
public void resize(int width, int height) {
backButton.addListener(listener);
continueButton.addListener(listener);
}
@Override
public void pause() {
}
@Override
public void resume() {
}
@Override
public void hide() {
}
@Override
public void dispose() {
}
protected void renderInternal(float delta) {}
}

@ -1,29 +1,14 @@
package eu.jonahbauer.wizard.client.libgdx.screens;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Screen;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.scenes.scene2d.InputEvent;
import com.badlogic.gdx.scenes.scene2d.InputListener;
import com.badlogic.gdx.scenes.scene2d.Stage;
import com.badlogic.gdx.scenes.scene2d.ui.List;
import com.badlogic.gdx.scenes.scene2d.ui.ScrollPane;
import com.badlogic.gdx.scenes.scene2d.ui.Skin;
import com.badlogic.gdx.scenes.scene2d.ui.TextButton;
import com.badlogic.gdx.utils.viewport.ScreenViewport;
import com.badlogic.gdx.scenes.scene2d.utils.ClickListener;
import eu.jonahbauer.wizard.client.libgdx.WizardGame;
import static eu.jonahbauer.wizard.client.libgdx.screens.MainMenuScreen.buttonClickSound;
public class SessionListScreen implements Screen {
Texture background;
Texture topLeft;
Texture topRight;
Texture bottomLeft;
Texture bottomRight;
Texture wizard;
public class SessionListScreen extends MenuScreen {
TextButton backButton;
TextButton continueButton;
@ -32,27 +17,31 @@ public class SessionListScreen implements Screen {
List<String> gameList;
ScrollPane listContainer;
Skin skin;
Stage stage;
public WizardGame game;
ClickListener listener = new ClickListener() {
@Override
public void clicked(InputEvent event, float x, float y) {
var target = event.getListenerActor();
if (target == backButton) {
game.setScreen(new ServerScreen(game));
sfxClick();
} else if (target == continueButton) {
game.setScreen(new WaitingScreen(game));
sfxClick();
} else if (target == createGameButton) {
game.setScreen(new CreateGameScreen(game));
sfxClick();
}
}
};
public SessionListScreen(WizardGame game) {
super(game);
this.game = game;
}
@Override
public void show() {
skin = new Skin(Gdx.files.internal("skin/uiskin.json"));
stage = new Stage(new ScreenViewport());
background = new Texture(Gdx.files.internal("background.png"));
topLeft = new Texture(Gdx.files.internal("ecke_lo.png"));
topRight = new Texture(Gdx.files.internal("ecke_ro.png"));
bottomLeft = new Texture(Gdx.files.internal("ecke_lu.png"));
bottomRight = new Texture(Gdx.files.internal("ecke_ru.png"));
wizard = new Texture(Gdx.files.internal("schriftzug_s.png"));
super.show();
backButton = new TextButton("Zurück", skin);
backButton.setPosition(WizardGame.WIDTH * 0.3f, WizardGame.HEIGHT * 0.18f);
@ -94,74 +83,11 @@ public class SessionListScreen implements Screen {
stage.addActor(createGameButton);
stage.addActor(listContainer);
backButton.addListener(new InputListener() {
@Override
public boolean touchDown(InputEvent event, float x, float y, int pointer, int button) {
buttonClickSound.play(0.6f);
game.setScreen(new ServerScreen(game));
return true;
}
});
continueButton.addListener(new InputListener() {
@Override
public boolean touchDown(InputEvent event, float x, float y, int pointer, int button) {
buttonClickSound.play(0.6f);
game.setScreen(new WaitingScreen(game));
return true;
}
});
createGameButton.addListener(new InputListener() {
@Override
public boolean touchDown(InputEvent event, float x, float y, int pointer, int button) {
buttonClickSound.play(0.6f);
game.setScreen(new CreateGameScreen(game));
return true;
}
});
backButton.addListener(listener);
continueButton.addListener(listener);
createGameButton.addListener(listener);
}
@Override
public void render(float delta) {
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
stage.act(Gdx.graphics.getDeltaTime());
this.game.batch.begin();
this.game.batch.draw(background, 0, 0);
this.game.batch.draw(topLeft, 0, WizardGame.HEIGHT - topLeft.getHeight());
this.game.batch.draw(topRight, WizardGame.WIDTH - topRight.getWidth(), WizardGame.HEIGHT - topRight.getHeight());
this.game.batch.draw(bottomLeft, 0, 0);
this.game.batch.draw(bottomRight, WizardGame.WIDTH - bottomRight.getWidth(), 0);
this.game.batch.draw(wizard, (WizardGame.WIDTH / 2f) - (wizard.getWidth() / 2f), WizardGame.HEIGHT * 0.75f);
this.game.batch.end();
stage.draw();
}
@Override
public void resize(int width, int height) {
}
@Override
public void pause() {
}
@Override
public void resume() {
}
@Override
public void hide() {
}
@Override
public void dispose() {
}
protected void renderInternal(float delta) {}
}

@ -4,42 +4,45 @@ import com.badlogic.gdx.Screen;
import eu.jonahbauer.wizard.client.libgdx.WizardGame;
public class WaitingScreen implements Screen {
WizardGame game;
public WaitingScreen(WizardGame game) { this.game = game; }
@Override
public void show() {
}
@Override
public void render(float delta) {
}
@Override
public void resize(int width, int height) {
}
@Override
public void pause() {
}
@Override
public void resume() {
}
@Override
public void hide() {
}
@Override
public void dispose() {
}
WizardGame game;
public WaitingScreen(WizardGame game) {
this.game = game;
}
@Override
public void show() {
}
@Override
public void render(float delta) {
}
@Override
public void resize(int width, int height) {
}
@Override
public void pause() {
}
@Override
public void resume() {
}
@Override
public void hide() {
}
@Override
public void dispose() {
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 MiB

After

Width:  |  Height:  |  Size: 2.3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

@ -1,102 +0,0 @@
info face="Enchanted Land" size=32 bold=0 italic=0 charset="" unicode=0 stretchH=100 smooth=1 aa=1 padding=1,1,1,1 spacing=-2,-2
common lineHeight=38 base=28 scaleW=512 scaleH=512 pages=1 packed=0
page id=0 file="font.png"
chars count=98
char id=0 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=0 page=0 chnl=0
char id=10 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=0 page=0 chnl=0
char id=32 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=3 page=0 chnl=0
char id=33 x=0 y=0 width=7 height=22 xoffset=-1 yoffset=8 xadvance=5 page=0 chnl=0
char id=34 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=6 page=0 chnl=0
char id=35 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=11 page=0 chnl=0
char id=36 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=8 page=0 chnl=0
char id=37 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=9 page=0 chnl=0
char id=38 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=10 page=0 chnl=0
char id=39 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=3 page=0 chnl=0
char id=40 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=7 page=0 chnl=0
char id=41 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=7 page=0 chnl=0
char id=42 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=7 page=0 chnl=0
char id=43 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=8 page=0 chnl=0
char id=44 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=5 page=0 chnl=0
char id=45 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=8 page=0 chnl=0
char id=46 x=0 y=0 width=7 height=6 xoffset=-1 yoffset=23 xadvance=5 page=0 chnl=0
char id=47 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=14 page=0 chnl=0
char id=48 x=0 y=0 width=11 height=23 xoffset=-1 yoffset=7 xadvance=9 page=0 chnl=0
char id=49 x=0 y=0 width=11 height=23 xoffset=-1 yoffset=7 xadvance=9 page=0 chnl=0
char id=50 x=0 y=0 width=12 height=23 xoffset=-1 yoffset=7 xadvance=11 page=0 chnl=0
char id=51 x=0 y=0 width=11 height=22 xoffset=-1 yoffset=8 xadvance=10 page=0 chnl=0
char id=52 x=0 y=0 width=15 height=23 xoffset=-1 yoffset=7 xadvance=13 page=0 chnl=0
char id=53 x=0 y=0 width=12 height=23 xoffset=-1 yoffset=7 xadvance=11 page=0 chnl=0
char id=54 x=0 y=0 width=11 height=23 xoffset=-1 yoffset=7 xadvance=10 page=0 chnl=0
char id=55 x=0 y=0 width=15 height=22 xoffset=-1 yoffset=8 xadvance=13 page=0 chnl=0
char id=56 x=0 y=0 width=11 height=23 xoffset=-1 yoffset=7 xadvance=9 page=0 chnl=0
char id=57 x=0 y=0 width=11 height=23 xoffset=-1 yoffset=7 xadvance=10 page=0 chnl=0
char id=58 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=4 page=0 chnl=0
char id=59 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=4 page=0 chnl=0
char id=60 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=8 page=0 chnl=0
char id=61 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=8 page=0 chnl=0
char id=62 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=8 page=0 chnl=0
char id=63 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=10 page=0 chnl=0
char id=64 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=19 page=0 chnl=0
char id=65 x=0 y=0 width=27 height=28 xoffset=-2 yoffset=6 xadvance=24 page=0 chnl=0
char id=66 x=0 y=0 width=19 height=26 xoffset=-1 yoffset=5 xadvance=17 page=0 chnl=0
char id=67 x=0 y=0 width=17 height=24 xoffset=-1 yoffset=7 xadvance=15 page=0 chnl=0
char id=68 x=0 y=0 width=21 height=26 xoffset=-2 yoffset=6 xadvance=18 page=0 chnl=0
char id=69 x=0 y=0 width=19 height=25 xoffset=-2 yoffset=6 xadvance=16 page=0 chnl=0
char id=70 x=0 y=0 width=18 height=25 xoffset=-1 yoffset=6 xadvance=16 page=0 chnl=0
char id=71 x=0 y=0 width=19 height=24 xoffset=-2 yoffset=7 xadvance=16 page=0 chnl=0
char id=72 x=0 y=0 width=20 height=23 xoffset=-2 yoffset=8 xadvance=17 page=0 chnl=0
char id=73 x=0 y=0 width=13 height=24 xoffset=-2 yoffset=7 xadvance=10 page=0 chnl=0
char id=74 x=0 y=0 width=15 height=25 xoffset=-1 yoffset=6 xadvance=13 page=0 chnl=0
char id=75 x=0 y=0 width=21 height=27 xoffset=-2 yoffset=7 xadvance=19 page=0 chnl=0
char id=76 x=0 y=0 width=17 height=26 xoffset=-2 yoffset=6 xadvance=14 page=0 chnl=0
char id=77 x=0 y=0 width=27 height=25 xoffset=-2 yoffset=7 xadvance=23 page=0 chnl=0
char id=78 x=0 y=0 width=20 height=24 xoffset=-2 yoffset=7 xadvance=17 page=0 chnl=0
char id=79 x=0 y=0 width=21 height=24 xoffset=-2 yoffset=7 xadvance=19 page=0 chnl=0
char id=80 x=0 y=0 width=20 height=26 xoffset=-2 yoffset=5 xadvance=18 page=0 chnl=0
char id=81 x=0 y=0 width=21 height=24 xoffset=-2 yoffset=8 xadvance=19 page=0 chnl=0
char id=82 x=0 y=0 width=21 height=28 xoffset=-2 yoffset=5 xadvance=19 page=0 chnl=0
char id=83 x=0 y=0 width=19 height=25 xoffset=-2 yoffset=7 xadvance=16 page=0 chnl=0
char id=84 x=0 y=0 width=18 height=25 xoffset=-1 yoffset=6 xadvance=16 page=0 chnl=0
char id=85 x=0 y=0 width=17 height=25 xoffset=-2 yoffset=7 xadvance=14 page=0 chnl=0
char id=86 x=0 y=0 width=16 height=25 xoffset=-1 yoffset=7 xadvance=15 page=0 chnl=0
char id=87 x=0 y=0 width=26 height=25 xoffset=-2 yoffset=7 xadvance=23 page=0 chnl=0
char id=88 x=0 y=0 width=19 height=25 xoffset=-1 yoffset=7 xadvance=18 page=0 chnl=0
char id=89 x=0 y=0 width=19 height=31 xoffset=-1 yoffset=7 xadvance=16 page=0 chnl=0
char id=90 x=0 y=0 width=16 height=24 xoffset=-1 yoffset=7 xadvance=14 page=0 chnl=0
char id=91 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=4 page=0 chnl=0
char id=92 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=14 page=0 chnl=0
char id=93 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=4 page=0 chnl=0
char id=94 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=7 page=0 chnl=0
char id=95 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=9 page=0 chnl=0
char id=96 x=0 y=0 width=7 height=8 xoffset=-1 yoffset=7 xadvance=5 page=0 chnl=0
char id=97 x=0 y=0 width=12 height=16 xoffset=-1 yoffset=13 xadvance=10 page=0 chnl=0
char id=98 x=0 y=0 width=12 height=22 xoffset=-2 yoffset=7 xadvance=10 page=0 chnl=0
char id=99 x=0 y=0 width=11 height=16 xoffset=-1 yoffset=13 xadvance=9 page=0 chnl=0
char id=100 x=0 y=0 width=12 height=22 xoffset=-1 yoffset=7 xadvance=10 page=0 chnl=0
char id=101 x=0 y=0 width=11 height=16 xoffset=-1 yoffset=13 xadvance=9 page=0 chnl=0
char id=102 x=0 y=0 width=12 height=22 xoffset=-2 yoffset=7 xadvance=9 page=0 chnl=0
char id=103 x=0 y=0 width=10 height=24 xoffset=-1 yoffset=12 xadvance=9 page=0 chnl=0
char id=104 x=0 y=0 width=14 height=22 xoffset=-2 yoffset=7 xadvance=11 page=0 chnl=0
char id=105 x=0 y=0 width=8 height=20 xoffset=-2 yoffset=9 xadvance=5 page=0 chnl=0
char id=106 x=0 y=0 width=12 height=27 xoffset=-2 yoffset=9 xadvance=9 page=0 chnl=0
char id=107 x=0 y=0 width=14 height=22 xoffset=-2 yoffset=7 xadvance=11 page=0 chnl=0
char id=108 x=0 y=0 width=8 height=22 xoffset=-2 yoffset=7 xadvance=5 page=0 chnl=0
char id=109 x=0 y=0 width=19 height=16 xoffset=-2 yoffset=13 xadvance=16 page=0 chnl=0
char id=110 x=0 y=0 width=14 height=16 xoffset=-2 yoffset=13 xadvance=11 page=0 chnl=0
char id=111 x=0 y=0 width=12 height=17 xoffset=-1 yoffset=12 xadvance=10 page=0 chnl=0
char id=112 x=0 y=0 width=12 height=22 xoffset=-2 yoffset=13 xadvance=10 page=0 chnl=0
char id=113 x=0 y=0 width=12 height=22 xoffset=-1 yoffset=13 xadvance=10 page=0 chnl=0
char id=114 x=0 y=0 width=12 height=16 xoffset=-2 yoffset=13 xadvance=9 page=0 chnl=0
char id=115 x=0 y=0 width=11 height=17 xoffset=-1 yoffset=13 xadvance=9 page=0 chnl=0
char id=116 x=0 y=0 width=9 height=21 xoffset=-2 yoffset=8 xadvance=6 page=0 chnl=0
char id=117 x=0 y=0 width=14 height=16 xoffset=-2 yoffset=13 xadvance=11 page=0 chnl=0
char id=118 x=0 y=0 width=12 height=16 xoffset=-2 yoffset=13 xadvance=10 page=0 chnl=0
char id=119 x=0 y=0 width=18 height=16 xoffset=-2 yoffset=13 xadvance=15 page=0 chnl=0
char id=120 x=0 y=0 width=12 height=18 xoffset=-1 yoffset=12 xadvance=10 page=0 chnl=0
char id=121 x=0 y=0 width=12 height=22 xoffset=-2 yoffset=13 xadvance=10 page=0 chnl=0
char id=122 x=0 y=0 width=11 height=16 xoffset=-1 yoffset=13 xadvance=9 page=0 chnl=0
char id=123 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=7 page=0 chnl=0
char id=124 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=3 page=0 chnl=0
char id=125 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=7 page=0 chnl=0
char id=126 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=10 page=0 chnl=0
char id=127 x=0 y=0 width=41 height=25 xoffset=-1 yoffset=0 xadvance=38 page=0 chnl=0

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 265 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 264 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 156 KiB

@ -1,102 +0,0 @@
info face="Enchanted Land" size=32 bold=0 italic=0 charset="" unicode=0 stretchH=100 smooth=1 aa=1 padding=1,1,1,1 spacing=-2,-2
common lineHeight=38 base=28 scaleW=512 scaleH=512 pages=1 packed=0
page id=0 file="font.png"
chars count=98
char id=0 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=0 page=0 chnl=0
char id=10 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=0 page=0 chnl=0
char id=32 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=3 page=0 chnl=0
char id=33 x=0 y=0 width=7 height=22 xoffset=-1 yoffset=8 xadvance=5 page=0 chnl=0
char id=34 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=6 page=0 chnl=0
char id=35 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=11 page=0 chnl=0
char id=36 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=8 page=0 chnl=0
char id=37 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=9 page=0 chnl=0
char id=38 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=10 page=0 chnl=0
char id=39 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=3 page=0 chnl=0
char id=40 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=7 page=0 chnl=0
char id=41 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=7 page=0 chnl=0
char id=42 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=7 page=0 chnl=0
char id=43 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=8 page=0 chnl=0
char id=44 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=5 page=0 chnl=0
char id=45 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=8 page=0 chnl=0
char id=46 x=0 y=0 width=7 height=6 xoffset=-1 yoffset=23 xadvance=5 page=0 chnl=0
char id=47 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=14 page=0 chnl=0
char id=48 x=0 y=0 width=11 height=23 xoffset=-1 yoffset=7 xadvance=9 page=0 chnl=0
char id=49 x=0 y=0 width=11 height=23 xoffset=-1 yoffset=7 xadvance=9 page=0 chnl=0
char id=50 x=0 y=0 width=12 height=23 xoffset=-1 yoffset=7 xadvance=11 page=0 chnl=0
char id=51 x=0 y=0 width=11 height=22 xoffset=-1 yoffset=8 xadvance=10 page=0 chnl=0
char id=52 x=0 y=0 width=15 height=23 xoffset=-1 yoffset=7 xadvance=13 page=0 chnl=0
char id=53 x=0 y=0 width=12 height=23 xoffset=-1 yoffset=7 xadvance=11 page=0 chnl=0
char id=54 x=0 y=0 width=11 height=23 xoffset=-1 yoffset=7 xadvance=10 page=0 chnl=0
char id=55 x=0 y=0 width=15 height=22 xoffset=-1 yoffset=8 xadvance=13 page=0 chnl=0
char id=56 x=0 y=0 width=11 height=23 xoffset=-1 yoffset=7 xadvance=9 page=0 chnl=0
char id=57 x=0 y=0 width=11 height=23 xoffset=-1 yoffset=7 xadvance=10 page=0 chnl=0
char id=58 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=4 page=0 chnl=0
char id=59 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=4 page=0 chnl=0
char id=60 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=8 page=0 chnl=0
char id=61 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=8 page=0 chnl=0
char id=62 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=8 page=0 chnl=0
char id=63 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=10 page=0 chnl=0
char id=64 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=19 page=0 chnl=0
char id=65 x=0 y=0 width=27 height=28 xoffset=-2 yoffset=6 xadvance=24 page=0 chnl=0
char id=66 x=0 y=0 width=19 height=26 xoffset=-1 yoffset=5 xadvance=17 page=0 chnl=0
char id=67 x=0 y=0 width=17 height=24 xoffset=-1 yoffset=7 xadvance=15 page=0 chnl=0
char id=68 x=0 y=0 width=21 height=26 xoffset=-2 yoffset=6 xadvance=18 page=0 chnl=0
char id=69 x=0 y=0 width=19 height=25 xoffset=-2 yoffset=6 xadvance=16 page=0 chnl=0
char id=70 x=0 y=0 width=18 height=25 xoffset=-1 yoffset=6 xadvance=16 page=0 chnl=0
char id=71 x=0 y=0 width=19 height=24 xoffset=-2 yoffset=7 xadvance=16 page=0 chnl=0
char id=72 x=0 y=0 width=20 height=23 xoffset=-2 yoffset=8 xadvance=17 page=0 chnl=0
char id=73 x=0 y=0 width=13 height=24 xoffset=-2 yoffset=7 xadvance=10 page=0 chnl=0
char id=74 x=0 y=0 width=15 height=25 xoffset=-1 yoffset=6 xadvance=13 page=0 chnl=0
char id=75 x=0 y=0 width=21 height=27 xoffset=-2 yoffset=7 xadvance=19 page=0 chnl=0
char id=76 x=0 y=0 width=17 height=26 xoffset=-2 yoffset=6 xadvance=14 page=0 chnl=0
char id=77 x=0 y=0 width=27 height=25 xoffset=-2 yoffset=7 xadvance=23 page=0 chnl=0
char id=78 x=0 y=0 width=20 height=24 xoffset=-2 yoffset=7 xadvance=17 page=0 chnl=0
char id=79 x=0 y=0 width=21 height=24 xoffset=-2 yoffset=7 xadvance=19 page=0 chnl=0
char id=80 x=0 y=0 width=20 height=26 xoffset=-2 yoffset=5 xadvance=18 page=0 chnl=0
char id=81 x=0 y=0 width=21 height=24 xoffset=-2 yoffset=8 xadvance=19 page=0 chnl=0
char id=82 x=0 y=0 width=21 height=28 xoffset=-2 yoffset=5 xadvance=19 page=0 chnl=0
char id=83 x=0 y=0 width=19 height=25 xoffset=-2 yoffset=7 xadvance=16 page=0 chnl=0
char id=84 x=0 y=0 width=18 height=25 xoffset=-1 yoffset=6 xadvance=16 page=0 chnl=0
char id=85 x=0 y=0 width=17 height=25 xoffset=-2 yoffset=7 xadvance=14 page=0 chnl=0
char id=86 x=0 y=0 width=16 height=25 xoffset=-1 yoffset=7 xadvance=15 page=0 chnl=0
char id=87 x=0 y=0 width=26 height=25 xoffset=-2 yoffset=7 xadvance=23 page=0 chnl=0
char id=88 x=0 y=0 width=19 height=25 xoffset=-1 yoffset=7 xadvance=18 page=0 chnl=0
char id=89 x=0 y=0 width=19 height=31 xoffset=-1 yoffset=7 xadvance=16 page=0 chnl=0
char id=90 x=0 y=0 width=16 height=24 xoffset=-1 yoffset=7 xadvance=14 page=0 chnl=0
char id=91 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=4 page=0 chnl=0
char id=92 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=14 page=0 chnl=0
char id=93 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=4 page=0 chnl=0
char id=94 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=7 page=0 chnl=0
char id=95 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=9 page=0 chnl=0
char id=96 x=0 y=0 width=7 height=8 xoffset=-1 yoffset=7 xadvance=5 page=0 chnl=0
char id=97 x=0 y=0 width=12 height=16 xoffset=-1 yoffset=13 xadvance=10 page=0 chnl=0
char id=98 x=0 y=0 width=12 height=22 xoffset=-2 yoffset=7 xadvance=10 page=0 chnl=0
char id=99 x=0 y=0 width=11 height=16 xoffset=-1 yoffset=13 xadvance=9 page=0 chnl=0
char id=100 x=0 y=0 width=12 height=22 xoffset=-1 yoffset=7 xadvance=10 page=0 chnl=0
char id=101 x=0 y=0 width=11 height=16 xoffset=-1 yoffset=13 xadvance=9 page=0 chnl=0
char id=102 x=0 y=0 width=12 height=22 xoffset=-2 yoffset=7 xadvance=9 page=0 chnl=0
char id=103 x=0 y=0 width=10 height=24 xoffset=-1 yoffset=12 xadvance=9 page=0 chnl=0
char id=104 x=0 y=0 width=14 height=22 xoffset=-2 yoffset=7 xadvance=11 page=0 chnl=0
char id=105 x=0 y=0 width=8 height=20 xoffset=-2 yoffset=9 xadvance=5 page=0 chnl=0
char id=106 x=0 y=0 width=12 height=27 xoffset=-2 yoffset=9 xadvance=9 page=0 chnl=0
char id=107 x=0 y=0 width=14 height=22 xoffset=-2 yoffset=7 xadvance=11 page=0 chnl=0
char id=108 x=0 y=0 width=8 height=22 xoffset=-2 yoffset=7 xadvance=5 page=0 chnl=0
char id=109 x=0 y=0 width=19 height=16 xoffset=-2 yoffset=13 xadvance=16 page=0 chnl=0
char id=110 x=0 y=0 width=14 height=16 xoffset=-2 yoffset=13 xadvance=11 page=0 chnl=0
char id=111 x=0 y=0 width=12 height=17 xoffset=-1 yoffset=12 xadvance=10 page=0 chnl=0
char id=112 x=0 y=0 width=12 height=22 xoffset=-2 yoffset=13 xadvance=10 page=0 chnl=0
char id=113 x=0 y=0 width=12 height=22 xoffset=-1 yoffset=13 xadvance=10 page=0 chnl=0
char id=114 x=0 y=0 width=12 height=16 xoffset=-2 yoffset=13 xadvance=9 page=0 chnl=0
char id=115 x=0 y=0 width=11 height=17 xoffset=-1 yoffset=13 xadvance=9 page=0 chnl=0
char id=116 x=0 y=0 width=9 height=21 xoffset=-2 yoffset=8 xadvance=6 page=0 chnl=0
char id=117 x=0 y=0 width=14 height=16 xoffset=-2 yoffset=13 xadvance=11 page=0 chnl=0
char id=118 x=0 y=0 width=12 height=16 xoffset=-2 yoffset=13 xadvance=10 page=0 chnl=0
char id=119 x=0 y=0 width=18 height=16 xoffset=-2 yoffset=13 xadvance=15 page=0 chnl=0
char id=120 x=0 y=0 width=12 height=18 xoffset=-1 yoffset=12 xadvance=10 page=0 chnl=0
char id=121 x=0 y=0 width=12 height=22 xoffset=-2 yoffset=13 xadvance=10 page=0 chnl=0
char id=122 x=0 y=0 width=11 height=16 xoffset=-1 yoffset=13 xadvance=9 page=0 chnl=0
char id=123 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=7 page=0 chnl=0
char id=124 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=3 page=0 chnl=0
char id=125 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=7 page=0 chnl=0
char id=126 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=10 page=0 chnl=0
char id=127 x=0 y=0 width=41 height=25 xoffset=-1 yoffset=0 xadvance=38 page=0 chnl=0

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

@ -1,187 +1,195 @@
{
"com.badlogic.gdx.graphics.g2d.BitmapFont":{
"default-font":{
"file":"default.fnt"
}
},
"com.badlogic.gdx.graphics.Color":{
"green":{
"a":1,
"b":0,
"g":1,
"r":0
},
"white":{
"a":1,
"b":1,
"g":1,
"r":1
},
"red":{
"a":1,
"b":0,
"g":0,
"r":1
},
"black":{
"a":1,
"b":0,
"g":0,
"r":0
}
},
"com.badlogic.gdx.scenes.scene2d.ui.Skin$TintedDrawable":{
"dialogDim":{
"name":"white",
"color":{
"r":0,
"g":0,
"b":0,
"a":0.45
}
}
},
"com.badlogic.gdx.scenes.scene2d.ui.Button$ButtonStyle":{
"default":{
"down":"default-round-down",
"up":"default-round"
},
"toggle":{
"down":"default-round-down",
"checked":"default-round-down",
"up":"default-round"
}
},
"com.badlogic.gdx.scenes.scene2d.ui.TextButton$TextButtonStyle":{
"default":{
"down":"default-round-down",
"up":"default-round",
"font":"default-font",
"fontColor":"white"
},
"toggle":{
"down":"default-round-down",
"up":"default-round",
"checked":"default-round-down",
"font":"default-font",
"fontColor":"white",
"downFontColor":"red"
}
},
"com.badlogic.gdx.scenes.scene2d.ui.ScrollPane$ScrollPaneStyle":{
"default":{
"vScroll":"default-scroll",
"hScrollKnob":"default-round-large",
"background":"default-rect",
"hScroll":"default-scroll",
"vScrollKnob":"default-round-large"
}
},
"com.badlogic.gdx.scenes.scene2d.ui.SelectBox$SelectBoxStyle":{
"default":{
"font":"default-font",
"fontColor":"white",
"background":"default-select",
"scrollStyle":"default",
"listStyle":{
"font":"default-font",
"selection":"default-select-selection"
}
}
},
"com.badlogic.gdx.scenes.scene2d.ui.SplitPane$SplitPaneStyle":{
"default-vertical":{
"handle":"default-splitpane-vertical"
},
"default-horizontal":{
"handle":"default-splitpane"
}
},
"com.badlogic.gdx.scenes.scene2d.ui.Window$WindowStyle":{
"default":{
"titleFont":"default-font",
"background":"default-window",
"titleFontColor":"white"
},
"dialog":{
"titleFont":"default-font",
"background":"default-window",
"titleFontColor":"white",
"stageBackground":"dialogDim"
}
},
"com.badlogic.gdx.scenes.scene2d.ui.ProgressBar$ProgressBarStyle":{
"default-horizontal":{
"background":"default-slider",
"knob":"default-slider-knob"
},
"default-vertical":{
"background":"default-slider",
"knob":"default-round-large"
}
},
"com.badlogic.gdx.scenes.scene2d.ui.Slider$SliderStyle":{
"default-horizontal":{
"background":"default-slider",
"knob":"default-slider-knob"
},
"default-vertical":{
"background":"default-slider",
"knob":"default-round-large"
}
},
"com.badlogic.gdx.scenes.scene2d.ui.Label$LabelStyle":{
"default":{
"font":"default-font",
"fontColor":"white"
}
},
"com.badlogic.gdx.scenes.scene2d.ui.TextField$TextFieldStyle":{
"default":{
"selection":"selection",
"background":"textfield",
"font":"default-font",
"fontColor":"white",
"cursor":"cursor"
}
},
"com.badlogic.gdx.scenes.scene2d.ui.CheckBox$CheckBoxStyle":{
"default":{
"checkboxOn":"check-on",
"checkboxOff":"check-off",
"font":"default-font",
"fontColor":"white"
}
},
"com.badlogic.gdx.scenes.scene2d.ui.List$ListStyle":{
"default":{
"fontColorUnselected":"white",
"selection":"selection",
"fontColorSelected":"white",
"font":"default-font"
}
},
"com.badlogic.gdx.scenes.scene2d.ui.Touchpad$TouchpadStyle":{
"default":{
"background":"default-pane",
"knob":"default-round-large"
}
},
"com.badlogic.gdx.scenes.scene2d.ui.Tree$TreeStyle":{
"default":{
"minus":"tree-minus",
"plus":"tree-plus",
"selection":"default-select-selection"
}
},
"com.badlogic.gdx.scenes.scene2d.ui.TextTooltip$TextTooltipStyle":{
"default":{
"label":{
"font":"default-font",
"fontColor":"white"
},
"background":"default-pane",
"wrapWidth":150
}
}
"com.badlogic.gdx.graphics.g2d.BitmapFont": {
"default-font": {
"file": "../font/coolvetica.fnt"
},
"enchanted": {
"file": "../font/enchanted.fnt"
}
},
"com.badlogic.gdx.graphics.Color": {
"green": {
"a": 1,
"b": 0,
"g": 1,
"r": 0
},
"white": {
"a": 1,
"b": 1,
"g": 1,
"r": 1
},
"red": {
"a": 1,
"b": 0,
"g": 0,
"r": 1
},
"black": {
"a": 1,
"b": 0,
"g": 0,
"r": 0
},
"gold": {
"a": 1,
"r": 0.9,
"g": 0.75,
"b": 0.125
}
},
"com.badlogic.gdx.scenes.scene2d.ui.Skin$TintedDrawable": {
"dialogDim": {
"name": "white",
"color": {
"r": 0,
"g": 0,
"b": 0,
"a": 0.45
}
}
},
"com.badlogic.gdx.scenes.scene2d.ui.Button$ButtonStyle": {
"default": {
"down": "default-round-down",
"up": "default-round"
},
"toggle": {
"down": "default-round-down",
"checked": "default-round-down",
"up": "default-round"
}
},
"com.badlogic.gdx.scenes.scene2d.ui.TextButton$TextButtonStyle": {
"default": {
"font": "enchanted",
"fontColor": "white",
"downFontColor": "gold"
},
"toggle": {
"down": "default-round-down",
"up": "default-round",
"checked": "default-round-down",
"font": "default-font",
"fontColor": "white",
"downFontColor": "red"
}
},
"com.badlogic.gdx.scenes.scene2d.ui.ScrollPane$ScrollPaneStyle": {
"default": {
"vScroll": "default-scroll",
"hScrollKnob": "default-round-large",
"background": "default-rect",
"hScroll": "default-scroll",
"vScrollKnob": "default-round-large"
}
},
"com.badlogic.gdx.scenes.scene2d.ui.SelectBox$SelectBoxStyle": {
"default": {
"font": "default-font",
"fontColor": "white",
"background": "default-select",
"scrollStyle": "default",
"listStyle": {
"font": "default-font",
"selection": "default-select-selection"
}
}
},
"com.badlogic.gdx.scenes.scene2d.ui.SplitPane$SplitPaneStyle": {
"default-vertical": {
"handle": "default-splitpane-vertical"
},
"default-horizontal": {
"handle": "default-splitpane"
}
},
"com.badlogic.gdx.scenes.scene2d.ui.Window$WindowStyle": {
"default": {
"titleFont": "default-font",
"background": "default-window",
"titleFontColor": "white"
},
"dialog": {
"titleFont": "default-font",
"background": "default-window",
"titleFontColor": "white",
"stageBackground": "dialogDim"
}
},
"com.badlogic.gdx.scenes.scene2d.ui.ProgressBar$ProgressBarStyle": {
"default-horizontal": {
"background": "default-slider",
"knob": "default-slider-knob"
},
"default-vertical": {
"background": "default-slider",
"knob": "default-round-large"
}
},
"com.badlogic.gdx.scenes.scene2d.ui.Slider$SliderStyle": {
"default-horizontal": {
"background": "default-slider",
"knob": "default-slider-knob"
},
"default-vertical": {
"background": "default-slider",
"knob": "default-round-large"
}
},
"com.badlogic.gdx.scenes.scene2d.ui.Label$LabelStyle": {
"default": {
"font": "default-font",
"fontColor": "white"
}
},
"com.badlogic.gdx.scenes.scene2d.ui.TextField$TextFieldStyle": {
"default": {
"selection": "selection",
"background": "textfield",
"font": "default-font",
"fontColor": "white",
"cursor": "cursor"
}
},
"com.badlogic.gdx.scenes.scene2d.ui.CheckBox$CheckBoxStyle": {
"default": {
"checkboxOn": "check-on",
"checkboxOff": "check-off",
"font": "default-font",
"fontColor": "white"
}
},
"com.badlogic.gdx.scenes.scene2d.ui.List$ListStyle": {
"default": {
"fontColorUnselected": "white",
"selection": "selection",
"fontColorSelected": "white",
"font": "default-font"
}
},
"com.badlogic.gdx.scenes.scene2d.ui.Touchpad$TouchpadStyle": {
"default": {
"background": "default-pane",
"knob": "default-round-large"
}
},
"com.badlogic.gdx.scenes.scene2d.ui.Tree$TreeStyle": {
"default": {
"minus": "tree-minus",
"plus": "tree-plus",
"selection": "default-select-selection"
}
},
"com.badlogic.gdx.scenes.scene2d.ui.TextTooltip$TextTooltipStyle": {
"default": {
"label": {
"font": "default-font",
"fontColor": "white"
},
"background": "default-pane",
"wrapWidth": 150
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 107 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 300 KiB

@ -8,10 +8,7 @@ public class DesktopLauncher {
public static void main (String[] arg) {
LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
config.title = "Wizard Jubilaeumsedition 2021";
config.height = WizardGame.HEIGHT;
config.width = WizardGame.WIDTH;
config.foregroundFPS = 60;
config.resizable = false;
LwjglApplication app = new LwjglApplication(new WizardGame(), config);
new LwjglApplication(new WizardGame(), config);
}
}

Loading…
Cancel
Save