diff --git a/assets/blank_die_faces_sheet.png b/assets/blank_die_faces_sheet.png new file mode 100644 index 0000000..98840a7 Binary files /dev/null and b/assets/blank_die_faces_sheet.png differ diff --git a/assets/pip.png b/assets/pip.png index 24bc7d8..7c56583 100644 Binary files a/assets/pip.png and b/assets/pip.png differ diff --git a/assets/raw_assets/blank_die_faces_sheet.kra b/assets/raw_assets/blank_die_faces_sheet.kra index 2b1dc8c..fc55adf 100644 Binary files a/assets/raw_assets/blank_die_faces_sheet.kra and b/assets/raw_assets/blank_die_faces_sheet.kra differ diff --git a/assets/raw_assets/blank_die_faces_sheet.png b/assets/raw_assets/blank_die_faces_sheet.png deleted file mode 100644 index ace8595..0000000 Binary files a/assets/raw_assets/blank_die_faces_sheet.png and /dev/null differ diff --git a/assets/raw_assets/pip.kra b/assets/raw_assets/pip.kra index cd54f82..d006222 100644 Binary files a/assets/raw_assets/pip.kra and b/assets/raw_assets/pip.kra differ diff --git a/assets/raw_assets/reroll_symbol.kra b/assets/raw_assets/reroll_symbol.kra index e8069a5..84c63ef 100644 Binary files a/assets/raw_assets/reroll_symbol.kra and b/assets/raw_assets/reroll_symbol.kra differ diff --git a/assets/reroll_symbol.png b/assets/reroll_symbol.png index c1063f8..a250e23 100644 Binary files a/assets/reroll_symbol.png and b/assets/reroll_symbol.png differ diff --git a/assets/shop_banner.png b/assets/shop_banner.png new file mode 100644 index 0000000..9c48b7c Binary files /dev/null and b/assets/shop_banner.png differ diff --git a/core/src/com/monjaro/gamejam/main/Face.java b/core/src/com/monjaro/gamejam/main/Face.java index abfc419..09d7f29 100644 --- a/core/src/com/monjaro/gamejam/main/Face.java +++ b/core/src/com/monjaro/gamejam/main/Face.java @@ -19,9 +19,14 @@ public class Face extends Actor{ private static Texture blankFaceSprite; private static Texture pipSprite; + int faceNumber; + + public Face(int pipCount, Transform transform) { addPipsForValue(pipCount); this.transform = transform; + Random rand = new Random(); + faceNumber = rand.nextInt(0, 5); } private void addPipsForValue(int value){ @@ -106,7 +111,7 @@ public class Face extends Actor{ @Override public void render(SpriteBatch batch) { - Sprite face = new Sprite(blankFaceSprite); + Sprite face = new Sprite(blankFaceSprite, 64*faceNumber, 0, 64, 64); face.setOrigin(face.getWidth()/2, face.getHeight()/2); face.rotate(transform.getRotation()); face.setPosition(transform.x-face.getWidth()/2, transform.y-face.getHeight()/2); diff --git a/core/src/com/monjaro/gamejam/main/Game.java b/core/src/com/monjaro/gamejam/main/Game.java index 160299c..250af94 100644 --- a/core/src/com/monjaro/gamejam/main/Game.java +++ b/core/src/com/monjaro/gamejam/main/Game.java @@ -44,7 +44,8 @@ public class Game extends ApplicationAdapter { ui = new UI(this, 50, 280); - Face.setBlankFaceSprite(new Texture("blank_die_face.png")); + Face.setBlankFaceSprite(new Texture("blank_die_faces_sheet.png")); + Face.setPipSprite(new Texture("pip.png")); Die.setLockedSprite(new Texture("locked_die_border.png")); UI.setRerollTexture(new Texture("reroll_symbol.png"));