From f2e12e9feba04db7fb0d00cb5a28091797c8781b Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Wed, 29 May 2024 11:11:48 +0500 Subject: upd: tile is now 1px --- core/src/com/ilotterytea/maxoning/ui/MovingChessBackground.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'core/src') 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); -- cgit v1.2.3