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) { public void setCard(Card.Suit suit) {
this.card = null; this.card = null;
// TODO more appropriate images this.background = atlas.findRegion(switch (suit) {
this.background = atlas.findRegion(ATLAS_PATHS.get(switch (suit) { case NONE -> GameAtlas.CARDS_BACKGROUND;
case NONE -> Card.HIDDEN; case GREEN -> GameAtlas.CARDS_GREEN;
case GREEN -> Card.GREEN_1; case YELLOW -> GameAtlas.CARDS_YELLOW;
case YELLOW -> Card.YELLOW_1; case BLUE -> GameAtlas.CARDS_BLUE;
case BLUE -> Card.BLUE_1; case RED -> GameAtlas.CARDS_RED;
case RED -> Card.RED_1; });
}));
} }
@Override @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