Audio.playMusic(true);
}
private void addTextBox() {
MessageString levelName = new MessageString(Message.LEVELNAME, level.getName(), Configuration.bonzai32);
levelName.label.setPosition((infoArea.x + infoArea.width / 2) - levelName.getMidPointX(), infoArea.y
+ infoArea.height - (Configuration.bonzai32.getXHeight() * (3f * (Configuration.gameScale / 20))));
infoBoxMessages.add(levelName);
MessageString scoreTag = new MessageString(Message.SCORETAG, ship.getInfoBox().getScoreTag(),
Configuration.bonzai24);
scoreTag.label.setPosition((infoArea.x + infoArea.width / 6), infoArea.y + infoArea.height
- ((Configuration.bonzai24.getXHeight() * 1.5f) * (6 * (Configuration.gameScale / 20))));
infoBoxMessages.add(scoreTag);
MessageString score = new MessageString(Message.SCORE, Integer.toString(ship.getInfoBox().getScore(
level.getName())), Configuration.bonzai24);
score.label.setPosition((infoArea.x + infoArea.width / 1.5f), infoArea.y + infoArea.height
- ((Configuration.bonzai24.getXHeight() * 1.5f) * (6 * (Configuration.gameScale / 20))));
infoBoxMessages.add(score);
MessageString livesTag = new MessageString(Message.LIVESTAG, ship.getInfoBox().getLivesTag(),
Configuration.bonzai24);
livesTag.label.setPosition((infoArea.x + infoArea.width / 6), infoArea.y + infoArea.height
- ((Configuration.bonzai24.getXHeight() * 1.5f) * (8f * (Configuration.gameScale / 20))));
infoBoxMessages.add(livesTag);
MessageString lives = new MessageString(Message.LIVES, Integer.toString(ship.getLives()),
Configuration.bonzai24);
lives.label.setPosition((infoArea.x + infoArea.width / 1.5f), infoArea.y + infoArea.height
- ((Configuration.bonzai24.getXHeight() * 1.5f) * (8f * (Configuration.gameScale / 20))));
infoBoxMessages.add(lives);
MessageString bombsTag = new MessageString(Message.BOMBTAG, ship.getInfoBox().getBombTag(),
Configuration.bonzai24);
bombsTag.label.setPosition((infoArea.x + infoArea.width / 6), infoArea.y + infoArea.height
- ((Configuration.bonzai24.getXHeight() * 1.5f) * (10f * (Configuration.gameScale / 20))));
infoBoxMessages.add(bombsTag);
MessageString bombs = new MessageString(Message.BOMBS, Integer.toString(ship.getBombs()),
Configuration.bonzai24);
bombs.label.setPosition((infoArea.x + infoArea.width / 1.5f), infoArea.y + infoArea.height
- ((Configuration.bonzai24.getXHeight() * 1.5f) * (10f * (Configuration.gameScale / 20))));
infoBoxMessages.add(bombs);
MessageString powerTag = new MessageString(Message.POWERTAG, ship.getInfoBox().getPowerTag(),
Configuration.bonzai24);
powerTag.label.setPosition((infoArea.x + infoArea.width / 6), infoArea.y + infoArea.height
- ((Configuration.bonzai24.getXHeight() * 1.5f) * (12f * (Configuration.gameScale / 20))));
infoBoxMessages.add(powerTag);
MessageString power = new MessageString(Message.POWER, Float.toString(ship.getDamage()), Configuration.bonzai24);
power.label.setPosition((infoArea.x + infoArea.width / 1.5f), infoArea.y + infoArea.height
- ((Configuration.bonzai24.getXHeight() * 1.5f) * (12f * (Configuration.gameScale / 20))));
infoBoxMessages.add(power);
MessageString BGMName = new MessageString(Message.BGM, "BGM: " + level.getBgmName(), Configuration.bonzai24);
BGMName.label.setPosition(infoArea.x+(infoArea.width/4), infoArea.y
+ infoArea.height
- ((Configuration.bonzai24.getXHeight() * 1.5f) * (16 * (Configuration.gameScale / 20))));
BGMName.label.setWidth(infoArea.width/2);
BGMName.label.setWrap(true);