simplify expand scale calc

This commit is contained in:
yugecin 2016-12-20 00:32:14 +01:00
parent e648a553ea
commit 82e2d2100d

View File

@ -262,7 +262,7 @@ public class MainMenu extends BasicGameState {
if (position == null) {
position = System.currentTimeMillis() % 1000 / 1000f;
}
float scale = 1f - (0f - position) * 0.05f;
float scale = 1f + position * 0.05f;
logo.draw(Color.white, scale);
Image ghostLogo = GameImage.MENU_LOGO.getImage().getScaledCopy(logo.getCurrentScale() / scale * 1.05f);
float scaleposmodx = ghostLogo.getWidth() / 2;