Update to gradle 3.3 and light cleanup.
This commit is contained in:
parent
cdd7983e84
commit
ce26f12d4e
5 changed files with 6 additions and 12 deletions
|
@ -41,7 +41,7 @@ public class Klooni extends Game {
|
|||
skin.add("button_up", new NinePatch(new Texture(
|
||||
Gdx.files.internal("ui/button_up.png")), 28, 28, 28, 28));
|
||||
|
||||
skin.add("button_down", new NinePatch(new Texture(
|
||||
skin.add("button_dscalableown", new NinePatch(new Texture(
|
||||
Gdx.files.internal("ui/button_down.png")), 28, 28, 28, 28));
|
||||
|
||||
skin.add("play_texture", new Texture(Gdx.files.internal("ui/play.png")));
|
||||
|
@ -82,12 +82,7 @@ public class Klooni extends Game {
|
|||
//endregion
|
||||
|
||||
//region Screen
|
||||
|
||||
@Override
|
||||
public void render() {
|
||||
super.render();
|
||||
}
|
||||
|
||||
|
||||
// TransitionScreen will also dispose by default the previous screen
|
||||
public void transitionTo(Screen screen) {
|
||||
transitionTo(screen, true);
|
||||
|
|
|
@ -223,7 +223,7 @@ public class PieceHolder implements BinSerializable {
|
|||
Gdx.input.getX(),
|
||||
Gdx.graphics.getHeight() - Gdx.input.getY()); // Y axis is inverted
|
||||
|
||||
if (Klooni.onDesktop) {
|
||||
if (Klooni.onDesktop) { //FIXME(oliver): This is a bad assumption to make. There are desktops with touch input and non-desktops with mouse input.
|
||||
// Center the piece to the mouse
|
||||
mouse.sub(piece.getRectangle().width * 0.5f, piece.getRectangle().height * 0.5f);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue