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
|
@ -4,7 +4,6 @@ import android.os.Bundle;
|
|||
|
||||
import com.badlogic.gdx.backends.android.AndroidApplication;
|
||||
import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration;
|
||||
import io.github.lonamiwebs.klooni.Klooni;
|
||||
|
||||
public class AndroidLauncher extends AndroidApplication {
|
||||
@Override
|
||||
|
|
|
@ -7,7 +7,7 @@ buildscript {
|
|||
}
|
||||
dependencies {
|
||||
classpath 'de.richsource.gradle.plugins:gwt-gradle-plugin:0.6'
|
||||
classpath 'com.android.tools.build:gradle:2.2.3'
|
||||
classpath 'com.android.tools.build:gradle:2.3.1'
|
||||
classpath 'com.mobidevelop.robovm:robovm-gradle-plugin:2.3.0'
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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")));
|
||||
|
@ -83,11 +83,6 @@ public class Klooni extends Game {
|
|||
|
||||
//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 {
|
||||
|
|
4
gradle/wrapper/gradle-wrapper.properties
vendored
4
gradle/wrapper/gradle-wrapper.properties
vendored
|
@ -1,6 +1,6 @@
|
|||
#Sat Jan 21 20:46:40 CET 2017
|
||||
#Sat Apr 08 12:05:23 CEST 2017
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
|
||||
|
|
Loading…
Reference in a new issue