add mainmenu ghost logo

This commit is contained in:
yugecin 2016-11-18 00:24:27 +01:00
parent 8be9adbd62
commit 64d1239e84

View File

@ -126,6 +126,8 @@ public class MainMenu extends BasicGameState {
private Input input;
private final int state;
private final Color logoGhostColor = new Color(1.0f, 1.0f, 1.0f, 0.15f);
public MainMenu(int state) {
this.state = state;
}
@ -281,6 +283,10 @@ public class MainMenu extends BasicGameState {
float scaleposmody = piece.getHeight() / 2;
piece.rotate((float)(position * 360));
piece.draw(logo.getX() - scaleposmodx, logo.getY() - scaleposmody);
Image logoCopy = GameImage.MENU_LOGO.getImage().getScaledCopy(logo.getCurrentScale() / (float) scale * 1.05f);
scaleposmodx = logoCopy.getWidth() / 2;
scaleposmody = logoCopy.getHeight() / 2;
logoCopy.draw(logo.getX() - scaleposmodx, logo.getY() - scaleposmody, logoGhostColor);
} else {
logo.draw();
}