diff --git a/wizard-client/wizard-client-libgdx/core/src/main/java/eu/jonahbauer/wizard/client/libgdx/actors/game/CardActor.java b/wizard-client/wizard-client-libgdx/core/src/main/java/eu/jonahbauer/wizard/client/libgdx/actors/game/CardActor.java index aa069ae..18bcfa5 100644 --- a/wizard-client/wizard-client-libgdx/core/src/main/java/eu/jonahbauer/wizard/client/libgdx/actors/game/CardActor.java +++ b/wizard-client/wizard-client-libgdx/core/src/main/java/eu/jonahbauer/wizard/client/libgdx/actors/game/CardActor.java @@ -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 diff --git a/wizard-client/wizard-client-libgdx/core/src/main/textures/game/cards/blue.jpg b/wizard-client/wizard-client-libgdx/core/src/main/textures/game/cards/blue.jpg new file mode 100644 index 0000000..9a62db3 Binary files /dev/null and b/wizard-client/wizard-client-libgdx/core/src/main/textures/game/cards/blue.jpg differ diff --git a/wizard-client/wizard-client-libgdx/core/src/main/textures/game/cards/green.jpg b/wizard-client/wizard-client-libgdx/core/src/main/textures/game/cards/green.jpg new file mode 100644 index 0000000..eb33995 Binary files /dev/null and b/wizard-client/wizard-client-libgdx/core/src/main/textures/game/cards/green.jpg differ diff --git a/wizard-client/wizard-client-libgdx/core/src/main/textures/game/cards/red.jpg b/wizard-client/wizard-client-libgdx/core/src/main/textures/game/cards/red.jpg new file mode 100644 index 0000000..60a4130 Binary files /dev/null and b/wizard-client/wizard-client-libgdx/core/src/main/textures/game/cards/red.jpg differ diff --git a/wizard-client/wizard-client-libgdx/core/src/main/textures/game/cards/yellow.jpg b/wizard-client/wizard-client-libgdx/core/src/main/textures/game/cards/yellow.jpg new file mode 100644 index 0000000..a52328c Binary files /dev/null and b/wizard-client/wizard-client-libgdx/core/src/main/textures/game/cards/yellow.jpg differ