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