Choose a better cell texture depending on screen size
BIN
android/assets/ui/x0.75/cells/basic.png
Normal file
After Width: | Height: | Size: 337 B |
BIN
android/assets/ui/x0.75/cells/bubble.png
Normal file
After Width: | Height: | Size: 823 B |
BIN
android/assets/ui/x1.0/cells/basic.png
Normal file
After Width: | Height: | Size: 421 B |
BIN
android/assets/ui/x1.0/cells/bubble.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
android/assets/ui/x1.0/cells/round.png
Normal file
After Width: | Height: | Size: 302 B |
BIN
android/assets/ui/x1.25/cells/basic.png
Normal file
After Width: | Height: | Size: 505 B |
BIN
android/assets/ui/x1.25/cells/bubble.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
android/assets/ui/x1.25/cells/round.png
Normal file
After Width: | Height: | Size: 380 B |
BIN
android/assets/ui/x1.5/cells/basic.png
Normal file
After Width: | Height: | Size: 655 B |
BIN
android/assets/ui/x1.5/cells/bubble.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
android/assets/ui/x1.5/cells/round.png
Normal file
After Width: | Height: | Size: 422 B |
BIN
android/assets/ui/x2.0/cells/basic.png
Normal file
After Width: | Height: | Size: 779 B |
BIN
android/assets/ui/x2.0/cells/bubble.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
android/assets/ui/x2.0/cells/round.png
Normal file
After Width: | Height: | Size: 491 B |
BIN
android/assets/ui/x4.0/cells/basic.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
android/assets/ui/x4.0/cells/bubble.png
Normal file
After Width: | Height: | Size: 4.7 KiB |
BIN
android/assets/ui/x4.0/cells/round.png
Normal file
After Width: | Height: | Size: 1 KiB |
|
@ -59,7 +59,7 @@ public class SkinLoader {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Texture loadPng(String name) {
|
public static Texture loadPng(String name) {
|
||||||
final String filename = "ui/x" + bestMultiplier + "/" + name + ".png";
|
final String filename = "ui/x" + bestMultiplier + "/" + name;
|
||||||
return new Texture(Gdx.files.internal(filename));
|
return new Texture(Gdx.files.internal(filename));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -153,7 +153,7 @@ public class Theme {
|
||||||
}
|
}
|
||||||
|
|
||||||
String cellTextureFile = json.getString("cell_texture");
|
String cellTextureFile = json.getString("cell_texture");
|
||||||
cellTexture = new Texture(Gdx.files.internal("ui/cells/"+cellTextureFile));
|
cellTexture = SkinLoader.loadPng("cells/"+cellTextureFile);
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,7 +37,7 @@ public abstract class BaseScorer implements BinSerializable {
|
||||||
|
|
||||||
// The board size is required when calculating the score
|
// The board size is required when calculating the score
|
||||||
BaseScorer(final Klooni game, GameLayout layout, int highScore) {
|
BaseScorer(final Klooni game, GameLayout layout, int highScore) {
|
||||||
cupTexture = SkinLoader.loadPng("cup");
|
cupTexture = SkinLoader.loadPng("cup.png");
|
||||||
cupColor = Klooni.theme.currentScore.cpy();
|
cupColor = Klooni.theme.currentScore.cpy();
|
||||||
cupArea = new Rectangle();
|
cupArea = new Rectangle();
|
||||||
|
|
||||||
|
|