added suit cards

main
Jonah Bauer 3 years ago
parent e15d0140d7
commit 42e87ae3a4

@ -130,14 +130,13 @@ public class CardActor extends Actor {
public void setCard(Card.Suit suit) {
this.card = null;
// TODO more appropriate images
this.background = atlas.findRegion(ATLAS_PATHS.get(switch (suit) {
case NONE -> Card.HIDDEN;
case GREEN -> Card.GREEN_1;
case YELLOW -> Card.YELLOW_1;
case BLUE -> Card.BLUE_1;
case RED -> Card.RED_1;
}));
this.background = atlas.findRegion(switch (suit) {
case NONE -> GameAtlas.CARDS_BACKGROUND;
case GREEN -> GameAtlas.CARDS_GREEN;
case YELLOW -> GameAtlas.CARDS_YELLOW;
case BLUE -> GameAtlas.CARDS_BLUE;
case RED -> GameAtlas.CARDS_RED;
});
}
@Override

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Loading…
Cancel
Save