Commit 9f027a91 authored by Vitaliy Vashchenko's avatar Vitaliy Vashchenko

Merge branch 'feature-safe-bonus-boom' into 'V3.7'

Safe bonus boom

See merge request !753
parents 7838a9d6 e260766b
Pipeline #42327 failed with stages
in 74 minutes and 42 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);
......@@ -315,6 +317,7 @@ public class SafeGame extends AbstractTablexiaGame<Void> {
}));
if (safeGame.getGameDifficulty() == GameDifficulty.BONUS) {
sa.addAction(makeBoom(safeGame));
sa.addAction(Actions.delay(2f));
}
}
}
......@@ -324,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