Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
TDT4240-group23
SpaceCheckers
Commits
4bcb280c
Commit
4bcb280c
authored
Apr 23, 2021
by
Anders H. Rebner
Browse files
Added comments in PlayView
parent
773b7473
Changes
1
Hide whitespace changes
Inline
Side-by-side
CheckersClient/core/src/com/mygdx/game/views/PlayView.java
View file @
4bcb280c
...
...
@@ -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
()
/
2
F
-
boardImage
.
getWidth
()
*
boardImage
.
getScaleX
()
/
2
F
,
Gdx
.
graphics
.
getHeight
()
/
2
F
-
board
.
getHeight
()
*
boardImage
.
getScaleY
()
/
2
F
);
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.5
F
,
0.5
F
);
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment