get the scale from the menubutton to scale the piece

This commit is contained in:
yugecin
2016-11-13 02:01:21 +01:00
parent d3684b922d
commit 2b585e376f
2 changed files with 13 additions and 1 deletions

View File

@@ -309,7 +309,7 @@ public class MainMenu extends BasicGameState {
Image piece = GameImage.MENU_LOGO_PIECE.getImage();
float xRadius = piece.getWidth() / 2;
float yRadius = piece.getHeight() / 2;
piece = piece.getScaledCopy(scale);
piece = piece.getScaledCopy(logo.getCurrentScale());
float scaleposmodx = piece.getWidth() / 2 - xRadius;
float scaleposmody = piece.getHeight() / 2 - yRadius;
piece.rotate((float)(position * 360));