Table table = new Table(game.getSkin());
table.setFillParent(true);
table.center();
// 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);
}
});
Label aboutLabel = new Label("JBombermanx v0.1\n(c) Santiago Faci\nhttp://bitbucket.org/sfaci/bombermanx", game.getSkin());
aboutLabel.setFontScale(1f);
table.row().height(100);
table.add(label).center().pad(35f);
table.row().height(40);
table.add(playButton).center().width(200).pad(5f);