Commit 551d42f0 authored by Aneta Steimarova's avatar Aneta Steimarova

#947 Made better final size of tweezers

parent d46d171d
......@@ -41,6 +41,9 @@ import cz.nic.tablexia.screen.AbstractTablexiaScreen;
*/
public class BonusCableGroup extends Group {
public static final int TWEEZERS_WIDTH = 284;
public static final int TWEEZERS_HEIGHT = 179;
private Image finalSocket;
private SafeGame safeGame;
private SafeLightImage lightImage;
......@@ -116,7 +119,7 @@ public class BonusCableGroup extends Group {
public void cut(SequenceAction sa) {
Image tweezers = new Image(safeGame.getScreenTextureRegion(SafeAssets.TWEEZERS));
tweezers.setSize(213, 134);
tweezers.setSize(TWEEZERS_WIDTH, TWEEZERS_HEIGHT);
float tweezersXPos = cable.getX() + cable.getWidth();
float tweezersYPos = cable.getY() - tweezers.getHeight()/2 + 20;
tweezers.setPosition(tweezersXPos, tweezersYPos);
......
TestGameInTheDarknessEasyNoneStar
TestGameInTheDarknessEasyOneStar
TestGameInTheDarknessEasyTwoStars
TestGameInTheDarknessEasyThreeStars
TestGameInTheDarknessMediumNoneStar
TestGameInTheDarknessMediumOneStar
TestGameInTheDarknessMediumTwoStars
TestGameInTheDarknessMediumThreeStars
TestGameInTheDarknessHardNoneStar
TestGameInTheDarknessHardOneStar
TestGameInTheDarknessHardTwoStars
TestGameInTheDarknessHardThreeStars
TestGameInTheDarknessBonusNoneStar
TestGameInTheDarknessBonusOneStar
TestGameInTheDarknessBonusTwoStars
TestGameInTheDarknessBonusThreeStars
TestGameInTheDarknessEasyScenario
TestGameInTheDarknessMediumScenario
TestGameInTheDarknessHardScenario
TestGameInTheDarknessBonusScenario
\ No newline at end of file
TestGameSafeBonusNoneStars
TestGameSafeBonusOneStars
TestGameSafeBonusTwoStars
TestGameSafeBonusThreeStars
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment