simplify expand scale calc
This commit is contained in:
parent
e648a553ea
commit
82e2d2100d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user