diff options
| author | ilotterytea <iltsu@alright.party> | 2024-05-29 11:11:48 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2024-05-29 11:11:48 +0500 |
| commit | f2e12e9feba04db7fb0d00cb5a28091797c8781b (patch) | |
| tree | 3c052ea040886d4bd56f5892018178f51e229afe /core/src/com | |
| parent | fb1302597da5f859959b3edfabfb2aec34e380d9 (diff) | |
upd: tile is now 1px
Diffstat (limited to 'core/src/com')
| -rw-r--r-- | core/src/com/ilotterytea/maxoning/ui/MovingChessBackground.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/src/com/ilotterytea/maxoning/ui/MovingChessBackground.java b/core/src/com/ilotterytea/maxoning/ui/MovingChessBackground.java index be8482d..db53230 100644 --- a/core/src/com/ilotterytea/maxoning/ui/MovingChessBackground.java +++ b/core/src/com/ilotterytea/maxoning/ui/MovingChessBackground.java @@ -62,8 +62,8 @@ public class MovingChessBackground { float totalDWidth = 0, totalDHeight = 0; for (Drawable drawable : drawables) { - totalDWidth += drawable.getMinWidth(); - totalDHeight += drawable.getMinHeight(); + totalDWidth += 64; + totalDHeight += 64; } totalDWidth = totalDWidth / drawables.size(); @@ -81,6 +81,7 @@ public class MovingChessBackground { for (int w = -1; w < width / totalDWidth; w++) { if (DIndex + 1 > drawables.size()) DIndex = 0; Image tile = new Image(drawables.get(DIndex++)); + tile.setSize(64f, 64f); tile.setPosition(tile.getWidth() * w, tile.getHeight() * h); |
