add mainmenu ghost logo
This commit is contained in:
parent
8be9adbd62
commit
64d1239e84
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user