Merge branch 'main' of github.com:Wil-Ro/gamejam2024
This commit is contained in:
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
BIN
assets/criteria.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 64 KiB |
BIN
assets/criteria_red.png
Normal file
BIN
assets/criteria_red.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 77 KiB |
Binary file not shown.
BIN
assets/raw_assets/blank_die_faces_sheet.kra
Normal file
BIN
assets/raw_assets/blank_die_faces_sheet.kra
Normal file
Binary file not shown.
BIN
assets/raw_assets/blank_die_faces_sheet.png
Normal file
BIN
assets/raw_assets/blank_die_faces_sheet.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
BIN
assets/raw_assets/criteria.kra
Normal file
BIN
assets/raw_assets/criteria.kra
Normal file
Binary file not shown.
BIN
assets/reroll_symbol_faded.png
Normal file
BIN
assets/reroll_symbol_faded.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.6 KiB |
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue