Commit ff1fd169 authored by Aneta Steimarova's avatar Aneta Steimarova

#948 Added rest of HD assets - game safe

parent 86cf6321
......@@ -43,6 +43,8 @@ import cz.nic.tablexia.util.Point;
public class SafeMechanicsHard extends AbstractMechanics {
private static final int SAFE_POINTER_WIDTH = 50;
private static final int SAFE_POINTER_HEIGHT = 250;
private static final int SAFE_PEAK_WIDTH = 398;
private static final int SAFE_PEAK_HEIGHT = 565;
private static final int SAFE_LIGHT_SIZE = 50;
private static final int SAFE_LIGHT_OFFSET = 20;
private static final int MIN_POINTER_Y = 130;
......@@ -58,6 +60,7 @@ public class SafeMechanicsHard extends AbstractMechanics {
@Override
void prepare(SafeGame safeGame, SafeSequence safeSequence) {
Image safePeak = new Image(safeGame.getScreenTextureRegion(SafeAssets.PEAK));
safePeak.setSize(SAFE_PEAK_WIDTH, SAFE_PEAK_HEIGHT);
safePeak.setPosition(getWidth() / 2 - safePeak.getWidth() / 2, safeGame.getSceneOuterBottomY());
addActor(safePeak);
......
......@@ -19,6 +19,7 @@
package cz.nic.tablexia.game.games.safe.gameobject;
import cz.nic.tablexia.TablexiaSettings;
import cz.nic.tablexia.game.games.safe.assets.SafeAssets;
public enum BonusCableTypeDefinition {
......@@ -68,7 +69,8 @@ public enum BonusCableTypeDefinition {
}
public float getSocketPercentReduction() {
return socketPercentReduction;
if (TablexiaSettings.getInstance().isUseHdAssets()) return socketPercentReduction;
return 2*socketPercentReduction;
}
public String getFinalSocket() {
......@@ -76,7 +78,8 @@ public enum BonusCableTypeDefinition {
}
public float getFinalSocketPercentReduction() {
return finalSocketPercentReduction;
if (TablexiaSettings.getInstance().isUseHdAssets()) return finalSocketPercentReduction;
return 2*finalSocketPercentReduction;
}
public String getCable() {
......
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