// Etiqueta de texto
Label label = new Label("JBOMBERMANX", game.getSkin());
label.setFontScale(2.5f);
// Botones de menú
TextButton playButton = new TextButton("NEW GAME", game.getSkin());
playButton.addListener(new ClickListener() {
public void touchUp(InputEvent event, float x, float y, int pointer, int button) {
dispose();
game.setScreen(new GameScreen(game));
}
});
TextButton settingsButton = new TextButton("SETTINGS", game.getSkin());
settingsButton.addListener(new ClickListener() {
public void touchUp(InputEvent event, float x, float y, int pointer, int button) {
dispose();
game.setScreen(new ConfigurationScreen(game));
}
});
TextButton quitButton = new TextButton("QUIT", game.getSkin());
quitButton.addListener(new ClickListener() {
public void touchUp(InputEvent event, float x, float y, int pointer, int button) {
dispose();
System.exit(0);
}
});