Small updates
This commit is contained in:
parent
8e3f164ffe
commit
4563cfb6e3
|
@ -29,7 +29,7 @@ public class Game extends Pane {
|
|||
|
||||
public Game() {
|
||||
Collections.shuffle(players);
|
||||
Image bord = new Image(ModLoader.getFile("/svg/Bord.svg"));
|
||||
Image bord = new Image(ModLoader.getFile("/svg/bord2.svg"));
|
||||
ImageView view = new ImageView(bord);
|
||||
|
||||
view.setPreserveRatio(true);
|
||||
|
@ -59,7 +59,7 @@ public class Game extends Pane {
|
|||
playerTurn.setFitHeight(400);
|
||||
|
||||
Label l = new Label();
|
||||
l.setTranslateX(1035);
|
||||
l.setTranslateX(965);
|
||||
l.setTranslateY(370);
|
||||
|
||||
|
||||
|
@ -75,7 +75,7 @@ public class Game extends Pane {
|
|||
if (roll == 4) Player.four();
|
||||
int next = players.get(Player.getNextActive()).getCh();
|
||||
playerTurn.setImage(Menu.images[next]);
|
||||
l.setText(Menu.names[next]);
|
||||
l.setText(Menu.names[next] + " is aan de beurt!");
|
||||
Player.four();
|
||||
}));
|
||||
//this.setBackground(new Background(new BackgroundFill(Color.RED, null, null)));
|
||||
|
@ -84,7 +84,7 @@ public class Game extends Pane {
|
|||
}
|
||||
|
||||
playerTurn.setImage(Menu.images[players.get(1).getCh()]);
|
||||
l.setText(Menu.names[players.get(1).getCh()]);
|
||||
l.setText(Menu.names[players.get(1).getCh()] + " is aan de beurt!");
|
||||
|
||||
String loc = this.getClass().getResource("/music/game.mp3").toString();
|
||||
Media music = new Media(loc);
|
||||
|
|
|
@ -14,7 +14,12 @@ import java.util.Properties;
|
|||
public class Main extends Application {
|
||||
public static Scene scene;
|
||||
|
||||
public static boolean memes = false;
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
for (String s : args) {
|
||||
if (s.equals("-memes")) memes = true;
|
||||
}
|
||||
|
||||
Properties properties = new Properties();
|
||||
properties.load(Main.class.getResourceAsStream("/text/locations.properties"));
|
||||
|
|
|
@ -61,6 +61,9 @@ public class Player {
|
|||
if (roll == 4)
|
||||
alert.contentTextProperty().setValue("Je hebt " + roll + " gegooid!\nKlavertje 4! Je mag dus nog een keer!");
|
||||
alert.titleProperty().setValue("");
|
||||
if (plaats + roll == 69 && Main.memes) {
|
||||
alert.contentTextProperty().setValue("heheheh 69 icksdie\n" + alert.getContentText());
|
||||
}
|
||||
if (!Game.specials.containsKey(plaats + roll))
|
||||
alert.show();
|
||||
if (roll + plaats > 100) {
|
||||
|
@ -107,9 +110,11 @@ public class Player {
|
|||
|
||||
tt.play();
|
||||
|
||||
|
||||
if (plaats == 100) {
|
||||
System.out.println("Een speler heeft gewonnen!");
|
||||
|
||||
Alert alert2 = new Alert(Alert.AlertType.WARNING, "Speler " + Menu.names[getCh()], ButtonType.OK);
|
||||
alert2.show();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Before Width: | Height: | Size: 1.8 MiB After Width: | Height: | Size: 1.8 MiB |
|
@ -0,0 +1,14 @@
|
|||
5=10
|
||||
7=4
|
||||
18=13
|
||||
20=27
|
||||
30=24
|
||||
42=88
|
||||
50=43
|
||||
57=65
|
||||
63=52
|
||||
71=62
|
||||
80=82
|
||||
88=87
|
||||
92=97
|
||||
98=90
|
Loading…
Reference in a new issue