Commit 4bcb280c authored by Anders H. Rebner's avatar Anders H. Rebner
Browse files

Added comments in PlayView

parent 773b7473
......@@ -28,7 +28,6 @@ import java.util.Arrays;
import java.util.List;
import java.util.concurrent.ConcurrentHashMap;
public class PlayView extends AbstractView {
int Help_Guides = 12;
......@@ -70,7 +69,6 @@ public class PlayView extends AbstractView {
backgroundImage = new Image(background);
backgroundImage.setScaling(Scaling.fill);
backgroundImage.setSize(Gdx.graphics.getWidth(), Gdx.graphics.getHeight());
stage.addActor(backgroundImage);
// Create board image
......@@ -84,7 +82,6 @@ public class PlayView extends AbstractView {
boardImage.setScaleX(scale_factor_board);
boardImage.setScaleY(scale_factor_board);
boardImage.setPosition(Gdx.graphics.getWidth() / 2F - boardImage.getWidth() * boardImage.getScaleX() / 2F, Gdx.graphics.getHeight() / 2F - board.getHeight() * boardImage.getScaleY() / 2F);
stage.addActor(boardImage);
......@@ -95,6 +92,7 @@ public class PlayView extends AbstractView {
setFadeColor(Color.BLACK);
// Turn indicator textures (rocket and exhaust)
Texture rocket = (Texture) assetManager.get(PlayAssets.ROCKET.path, PlayAssets.ROCKET.classType);
rocketImage = new Image(rocket);
rocketImage.setScale(0.5F, 0.5F);
......@@ -109,6 +107,7 @@ public class PlayView extends AbstractView {
possibleMoveTexture = (Texture) assetManager.get(PlayAssets.POSSIBLE_FIELD.path, PlayAssets.POSSIBLE_FIELD.classType);
// StarPiece textures
starPieceBase = (Texture) assetManager.get(PlayAssets.STAR_PIECE_BASE.path, PlayAssets.STAR_PIECE_BASE.classType);
starPieceBaseBorder = (Texture) assetManager.get(PlayAssets.STAR_PIECE_BASE_BORDER.path, PlayAssets.STAR_PIECE_BASE_BORDER.classType);
starPieceMast = (Texture) assetManager.get(PlayAssets.STAR_PIECE_MAST.path, PlayAssets.STAR_PIECE_MAST.classType);
......
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