diff options
| -rw-r--r-- | assets/MainSpritesheet.atlas | 248 | ||||
| -rw-r--r-- | assets/MainSpritesheet.png | bin | 68918 -> 71365 bytes | |||
| -rw-r--r-- | core/src/com/ilotterytea/maxoning/ui/MovingChessBackground.java | 5 |
3 files changed, 44 insertions, 209 deletions
diff --git a/assets/MainSpritesheet.atlas b/assets/MainSpritesheet.atlas index b9ea7e3..e0296e3 100644 --- a/assets/MainSpritesheet.atlas +++ b/assets/MainSpritesheet.atlas @@ -1,239 +1,73 @@ - MainSpritesheet.png -size: 1024, 256 -format: RGBA8888 -filter: Nearest, Nearest -repeat: none +size:512,512 +repeat:none bg - rotate: false - xy: 320, 0 - size: 64, 64 - split: 8, 8, 8, 8 - pad: 8, 8, 8, 8 - orig: 64, 64 - offset: 0, 0 - index: -1 +bounds:64,64,64,64 +split:8,8,8,8 checkmark - rotate: false - xy: 320, 64 - size: 64, 64 - orig: 64, 64 - offset: 0, 0 - index: -1 +bounds:320,448,64,64 circle - rotate: false - xy: 256, 64 - size: 64, 64 - split: 30, 30, 30, 30 - pad: 30, 30, 30, 30 - orig: 64, 64 - offset: 0, 0 - index: -1 +bounds:0,64,64,64 +split:30,30,30,30 close - rotate: false - xy: 384, 128 - size: 64, 64 - orig: 64, 64 - offset: 0, 0 - index: -1 +bounds:64,0,64,64 delete - rotate: false - xy: 256, 192 - size: 64, 64 - orig: 64, 64 - offset: 0, 0 - index: -1 +bounds:128,320,64,64 down - rotate: false - xy: 448, 192 - size: 64, 64 - split: 12, 12, 12, 12 - pad: 12, 12, 12, 12 - orig: 64, 64 - offset: 0, 0 - index: -1 +bounds:128,192,64,64 +split:12,12,12,12 down_arrow - rotate: false - xy: 512, 0 - size: 64, 64 - orig: 64, 64 - offset: 0, 0 - index: -1 +bounds:384,384,64,64 fg - rotate: false - xy: 640, 128 - size: 64, 64 - split: 8, 8, 8, 8 - pad: 8, 8, 8, 8 - orig: 64, 64 - offset: 0, 0 - index: -1 +bounds:256,192,64,64 +split:8,8,8,8 gift - rotate: false - xy: 128, 128 - size: 128, 128 - orig: 128, 128 - offset: 0, 0 - index: -1 +bounds:128,384,128,128 gradient - rotate: false - xy: 320, 128 - size: 64, 64 - orig: 64, 64 - offset: 0, 0 - index: -1 +bounds:128,256,64,64 green_up - rotate: false - xy: 448, 64 - size: 64, 64 - split: 12, 12, 12, 12 - pad: 12, 12, 12, 12 - orig: 64, 64 - offset: 0, 0 - index: -1 +bounds:384,448,64,64 +split:12,12,12,12 inventory - rotate: false - xy: 0, 128 - size: 128, 128 - orig: 128, 128 - offset: 0, 0 - index: -1 +bounds:0,384,128,128 left_arrow - rotate: false - xy: 448, 0 - size: 64, 64 - orig: 64, 64 - offset: 0, 0 - index: -1 +bounds:128,128,64,64 multiplier - rotate: false - xy: 512, 128 - size: 64, 64 - orig: 64, 64 - offset: 0, 0 - index: -1 +bounds:192,192,64,64 options - rotate: false - xy: 256, 128 - size: 64, 64 - orig: 64, 64 - offset: 0, 0 - index: -1 +bounds:256,448,64,64 over - rotate: false - xy: 512, 64 - size: 64, 64 - split: 12, 12, 12, 12 - pad: 12, 12, 12, 12 - orig: 64, 64 - offset: 0, 0 - index: -1 +bounds:320,320,64,64 +split:12,12,12,12 points - rotate: false - xy: 576, 0 - size: 64, 64 - orig: 64, 64 - offset: 0, 0 - index: -1 +bounds:128,0,64,64 r_down - rotate: false - xy: 576, 128 - size: 64, 64 - split: 30, 30, 30, 30 - pad: 30, 30, 30, 30 - orig: 64, 64 - offset: 0, 0 - index: -1 +bounds:448,384,64,64 +split:30,30,30,30 r_over - rotate: false - xy: 384, 64 - size: 64, 64 - orig: 64, 64 - offset: 0, 0 - index: -1 +bounds:192,256,64,64 r_up - rotate: false - xy: 384, 192 - size: 64, 64 - orig: 64, 64 - offset: 0, 0 - index: -1 +bounds:256,384,64,64 right_arrow - rotate: false - xy: 576, 192 - size: 64, 64 - orig: 64, 64 - offset: 0, 0 - index: -1 +bounds:256,256,64,64 shop - rotate: false - xy: 128, 0 - size: 128, 128 - orig: 128, 128 - offset: 0, 0 - index: -1 +bounds:0,128,128,128 shutdown - rotate: false - xy: 640, 192 - size: 64, 64 - orig: 64, 64 - offset: 0, 0 - index: -1 +bounds:128,64,64,64 source_code - rotate: false - xy: 320, 192 - size: 64, 64 - orig: 64, 64 - offset: 0, 0 - index: -1 +bounds:0,0,64,64 tile - rotate: false - xy: 704, 192 - size: 64, 64 - orig: 64, 64 - offset: 0, 0 - index: -1 +bounds:320,319,1,1 twitch - rotate: false - xy: 448, 128 - size: 64, 64 - orig: 64, 64 - offset: 0, 0 - index: -1 +bounds:320,384,64,64 twitter - rotate: false - xy: 256, 0 - size: 64, 64 - orig: 64, 64 - offset: 0, 0 - index: -1 +bounds:192,320,64,64 unknown - rotate: false - xy: 0, 0 - size: 128, 128 - orig: 128, 128 - offset: 0, 0 - index: -1 +bounds:0,256,128,128 up - rotate: false - xy: 576, 64 - size: 64, 64 - split: 12, 12, 12, 12 - pad: 12, 12, 12, 12 - orig: 64, 64 - offset: 0, 0 - index: -1 +bounds:192,128,64,64 +split:12,12,12,12 up_arrow - rotate: false - xy: 384, 0 - size: 64, 64 - orig: 64, 64 - offset: 0, 0 - index: -1 +bounds:256,320,64,64 youtube - rotate: false - xy: 512, 192 - size: 64, 64 - orig: 64, 64 - offset: 0, 0 - index: -1 +bounds:448,448,64,64 diff --git a/assets/MainSpritesheet.png b/assets/MainSpritesheet.png Binary files differindex 05b3f1c..7d5e6ee 100644 --- a/assets/MainSpritesheet.png +++ b/assets/MainSpritesheet.png 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); |
