Update to gradle 3.3 and light cleanup.

This commit is contained in:
Oliver Jan Krylow 2017-04-09 21:07:15 +02:00
parent cdd7983e84
commit ce26f12d4e
5 changed files with 6 additions and 12 deletions

View file

@ -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);

View file

@ -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 {