Merge branch 'main' of github.com:Wil-Ro/gamejam2024

This commit is contained in:
James 2024-04-20 16:52:52 +01:00
commit 953736e7bc
4 changed files with 30 additions and 10 deletions

View file

@ -33,8 +33,11 @@ public class Game extends ApplicationAdapter {
font = new BitmapFont();
img = new Texture("badlogic.jpg");
for (int i = 0; i < 5; i++) {
dice.add(new Die());
Face.setBlankFaceSprite(new Texture("blank_die_face.png"));
Face.setPipSprite(new Texture("pip.png"));
for (int i = 1; i <= 5; i++) {
dice.add(new Die((i*80), 20, 64, 64));
}
}
@ -77,8 +80,7 @@ public class Game extends ApplicationAdapter {
//TODO debug
int x = 100;
for (Die die : dice) {
batch.setColor(Color.WHITE);
font.draw(batch, String.valueOf(die.getFaceValue()), x += 50, 100);
die.render(batch);
}
//-----