added suit cards
This commit is contained in:
parent
dd76511af2
commit
f16ae15858
@ -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…
x
Reference in New Issue
Block a user