From 64d1239e849bcc3f11cd4466b4a3d6fdd2a4e3e5 Mon Sep 17 00:00:00 2001 From: yugecin Date: Fri, 18 Nov 2016 00:24:27 +0100 Subject: [PATCH] add mainmenu ghost logo --- src/itdelatrisu/opsu/states/MainMenu.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/itdelatrisu/opsu/states/MainMenu.java b/src/itdelatrisu/opsu/states/MainMenu.java index f6c7a203..7030282f 100644 --- a/src/itdelatrisu/opsu/states/MainMenu.java +++ b/src/itdelatrisu/opsu/states/MainMenu.java @@ -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(); }