Skip to content
Snippets Groups Projects
Commit 98b549be authored by v.tarantik's avatar v.tarantik
Browse files

#32 Pieces shuffling, background image substituted by TablexiaNoBlendingImage

parent d219cd2e
Branches
Tags
No related merge requests found
......@@ -26,6 +26,7 @@ import cz.nic.tablexia.game.games.pursuit.model.VehicleType;
import cz.nic.tablexia.util.Log;
import cz.nic.tablexia.util.Utility;
import cz.nic.tablexia.util.listener.DragAndRotateActorListener;
import cz.nic.tablexia.util.ui.TablexiaNoBlendingImage;
/**
* Created by Václav Tarantík on 6.3.15.
......@@ -40,7 +41,7 @@ public class PursuitGame extends AbstractTablexiaGame<int[][]> {
private Group contentGroup;
private Grid grid;
private Image backgroundImage;
private TablexiaNoBlendingImage backgroundImage;
private DragAndRotateActorListener dragAndRotateActorListener;
private int movesCounter;
private float startTime;
......@@ -151,7 +152,7 @@ public class PursuitGame extends AbstractTablexiaGame<int[][]> {
}
private void prepareBackground() {
backgroundImage = new Image(getScreenTextureRegion(TextureHelper.getBgTexturePath()));
backgroundImage = new TablexiaNoBlendingImage(getScreenTextureRegion(TextureHelper.getBgTexturePath()));
backgroundImage.setSize(SCREEN_WIDTH, SCREEN_MIN_HEIGHT);
contentGroup.addActor(backgroundImage);
......
......@@ -74,7 +74,7 @@ public class Grid extends Group {
piecesMap.put(piecesMap.size(), puzzlePiece);
addActor(puzzlePiece);
}
//shufflePieces(random);
shufflePieces(random);
}
//method shuffles pieces inside grid and sets its rotation randomly
......
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