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

This commit is contained in:
James 2024-04-21 14:35:00 +01:00
commit 7632c476fa
9 changed files with 11 additions and 0 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3 KiB

After

Width:  |  Height:  |  Size: 3 KiB

BIN
assets/criteria.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

BIN
assets/criteria_red.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

View file

@ -1,6 +1,7 @@
package com.monjaro.gamejam;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.glutils.ShapeRenderer;
@ -55,6 +56,14 @@ public class SegmentUI extends Actor {
int numOfSegments = round.getSegments().size();
for (int i = 0; i < numOfSegments; i++) {
if (round.getSegments().get(i).isDestroyedBy(game.getSelectedDice()))
batch.setColor(0.5f, 0.3f, 0.5f, 1);
else if (round.getSegments().get(i).isDestroyed())
batch.setColor(0,0,0,1);
int criteriaType = round.getSegments().get(i).getSpriteColumn();
int criteriaQuantity = round.getSegments().get(i).getSpriteRow();
batch.draw(criteriaSheet,
@ -63,6 +72,8 @@ public class SegmentUI extends Actor {
spriteWidth*criteriaType, spriteHeight*(criteriaQuantity),
spriteWidth, spriteHeight,
false, false);
batch.setColor(Color.WHITE);
}