added suit cards

This commit is contained in:
Jonah Bauer 2022-01-09 22:24:08 +01:00
parent e15d0140d7
commit 42e87ae3a4
5 changed files with 7 additions and 8 deletions

View File

@ -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