Skip to content
Snippets Groups Projects
Commit c99a706f authored by Sondre Alfnes's avatar Sondre Alfnes Committed by Sondre Alfnes
Browse files

How to play

parent b1e15a94
No related branches found
No related tags found
1 merge request!69How to play & Remove files
Pipeline #275636 passed
assets/images/howtoplay-1.png

207 KiB | W: | H:

assets/images/howtoplay-1.png

199 KiB | W: | H:

assets/images/howtoplay-1.png
assets/images/howtoplay-1.png
assets/images/howtoplay-1.png
assets/images/howtoplay-1.png
  • 2-up
  • Swipe
  • Onion skin
assets/images/howtoplay-2.png

261 KiB | W: | H:

assets/images/howtoplay-2.png

152 KiB | W: | H:

assets/images/howtoplay-2.png
assets/images/howtoplay-2.png
assets/images/howtoplay-2.png
assets/images/howtoplay-2.png
  • 2-up
  • Swipe
  • Onion skin
assets/images/howtoplay-3.png

165 KiB | W: | H:

assets/images/howtoplay-3.png

225 KiB | W: | H:

assets/images/howtoplay-3.png
assets/images/howtoplay-3.png
assets/images/howtoplay-3.png
assets/images/howtoplay-3.png
  • 2-up
  • Swipe
  • Onion skin
assets/images/howtoplay-4.png

207 KiB | W: | H:

assets/images/howtoplay-4.png

318 KiB | W: | H:

assets/images/howtoplay-4.png
assets/images/howtoplay-4.png
assets/images/howtoplay-4.png
assets/images/howtoplay-4.png
  • 2-up
  • Swipe
  • Onion skin
assets/images/howtoplay-5.png

128 KiB | W: | H:

assets/images/howtoplay-5.png

360 KiB | W: | H:

assets/images/howtoplay-5.png
assets/images/howtoplay-5.png
assets/images/howtoplay-5.png
assets/images/howtoplay-5.png
  • 2-up
  • Swipe
  • Onion skin
assets/images/howtoplay-6.png

319 KiB

assets/images/howtoplay-7.png

240 KiB

......@@ -4,7 +4,7 @@ import com.mygdx.game.GameManager;
public class HowToPlayController extends ControllerState {
private static int currentPage = 1;
private static int maxPages = 5;
private static int maxPages;
public HowToPlayController(ControllerStateManager controllerStateManager) {
......@@ -27,6 +27,10 @@ public class HowToPlayController extends ControllerState {
}
}
public static void setMaxPages(int maxPages) {
HowToPlayController.maxPages = maxPages;
}
public static void previousPage() {
if (currentPage > 1) {
currentPage--;
......
......@@ -17,18 +17,22 @@ public class HowToPlayView extends ViewState {
}
private String[] pages = {
"Before you start playing, you should start to look at the loadout’s available by clicking on the Loadouts button",
"Here you can choose between 3 loadouts: Standard, Medival and Modern. Where each loadout shows the pieces you play with.",
"There are two new pieces: Sniper: Moves like the king, but can only attack pieces that are 3 blocks away in front of it.Super Knight: Moves like the Knight, but as a Big L, 3 up and 2 to the side. Both pieces are worth 3 points",
"Back at the main menu, you can click on the Create Game button to create a new game",
"Here you can see the Game Pin that you need to share with the opponent. You can choose the time limit and the mapsize to the game. When ready press “Start Game” and Good luck!" };
"Welcome to Chess Evolution! This is a new chess game where you can choose between 3 different loadouts and 3 different mapsizes. You can start by clicking \"Create Game\"",
"Here you can choose between 3 loadouts: Standard, Medival and Modern. Where each loadout has there own pieces",
"There are tree new pieces to the game: Snake, Phenoix and Thief.",
"This is the piece Phenoix, as you can see it can only move like a box around it.",
"This is the piece Snake, this pice work like a bishop, but it jumps diagonaly instead",
"And last new piece is the Thief, this piece can move like a rook, but it jumps like the snake",
"After choosing loadout and mapsize, you can click \"Start Game\" to start the game. Good luck!"
};
private String[] imgUrls = { "images/howtoplay-1.png", "images/howtoplay-2.png", "images/howtoplay-3.png",
"images/howtoplay-4.png", "images/howtoplay-5.png" };
"images/howtoplay-4.png", "images/howtoplay-5.png", "images/howtoplay-6.png", "images/howtoplay-7.png" };
private Table table = new Table();
private void setupUI() {
HowToPlayController.setMaxPages(pages.length);
table.setFillParent(true);
stage.addActor(table);
HowToPlayController.reset();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment