Commit e260766b authored by Aneta Steimarova's avatar Aneta Steimarova

#959 Made better boom position

parent 903ecbb9
Pipeline #42319 passed with stages
in 25 minutes and 14 seconds
......@@ -87,6 +87,8 @@ public class SafeGame extends AbstractTablexiaGame<Void> {
private static final int REPLAY_BUTTON_OFFSET_Y = 204;
private static final int DONE_BUTTON_OFFSET_Y = 50;
private static final int HELP_BUTTON_OFFSET_Y = 122;
private static final int BOOM_WIDTH = 500;
private static final int BOOM_HEIGHT = 516;
private static final String MINUS_ONE_TEXT = "-1";
private static final float DIMMER_ALPHA = 0.7f;
private static final Color VISUALIZATION_DIMMER_COLOR = new Color(0, 0, 0, DIMMER_ALPHA);
......@@ -325,6 +327,8 @@ public class SafeGame extends AbstractTablexiaGame<Void> {
@Override
public void run() {
Image boom = new Image(getScreenTextureRegion(SafeAssets.BOOM));
boom.setSize(BOOM_WIDTH, BOOM_HEIGHT);
boom.setOrigin(Align.center);
boom.setPosition(sideBarEdge.getX()/2 - boom.getWidth()/2, getViewportHeight()/2 - boom.getHeight()/2);
backgroundGroup.addActor(boom);
boom.addAction(Actions.alpha(0));
......
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