fixes bug

This commit is contained in:
Rosia E Evans 2024-04-21 16:49:02 +01:00
parent 247c8aed5c
commit cd72eae378

View file

@ -36,6 +36,10 @@ public class ShopeUi extends Actor{
List<Face> shope = game.getShope(); List<Face> shope = game.getShope();
for (int i = 0; i < shope.size(); i++) { for (int i = 0; i < shope.size(); i++) {
Face face = shope.get(i); Face face = shope.get(i);
if (face == null)
continue;
face.setTransform(new Transform(((Gdx.graphics.getWidth()/4)*i)+(Gdx.graphics.getWidth()/4), Gdx.graphics.getHeight()/8, 64, 64)); face.setTransform(new Transform(((Gdx.graphics.getWidth()/4)*i)+(Gdx.graphics.getWidth()/4), Gdx.graphics.getHeight()/8, 64, 64));
face.render(batch); face.render(batch);