merge
This commit is contained in:
commit
c5e6eb6582
1 changed files with 3 additions and 3 deletions
|
@ -104,13 +104,13 @@ public class Game extends ApplicationAdapter {
|
||||||
die.render(batch);
|
die.render(batch);
|
||||||
}
|
}
|
||||||
|
|
||||||
int x = 50;
|
int y = Gdx.graphics.getHeight() - 50;
|
||||||
for (Segment segment : segments) {
|
for (Segment segment : segments) {
|
||||||
String prefix = "[#9E65A8]";
|
String prefix = "[#9E65A8]";
|
||||||
if (segment.isDestroyed()) prefix = "[#EBE5EC]";
|
if (segment.isDestroyed()) prefix = "[#EBE5EC]";
|
||||||
else if (segment.isDestroyedBy(getSelectedDice())) prefix = "[#528154]";
|
else if (segment.isDestroyedBy(getSelectedDice())) prefix = "[#528154]";
|
||||||
|
|
||||||
font.draw(batch, prefix + segment.getName(), x += 75, Gdx.graphics.getHeight() - 100);
|
font.draw(batch, prefix + segment.getName(), 100, y -= 20);
|
||||||
}
|
}
|
||||||
//-----
|
//-----
|
||||||
|
|
||||||
|
@ -127,7 +127,7 @@ public class Game extends ApplicationAdapter {
|
||||||
|
|
||||||
public List<Die> getSelectedDice() {
|
public List<Die> getSelectedDice() {
|
||||||
return dice.stream()
|
return dice.stream()
|
||||||
.filter(d -> !d.isSelected())
|
.filter(Die::isSelected)
|
||||||
.toList();
|
.toList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue