M build.gradle +3 -1
@@ 12,7 12,7 @@ allprojects {
ext {
appName = 'JigsawPuzzle'
gdxVersion = '1.5.3'
- gdxUtilsVersion = '0.4.0'
+ gdxUtilsVersion = '0.10.0-SNAPSHOT'
}
repositories {
@@ 20,6 20,8 @@ allprojects {
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
maven { url 'https://oss.sonatype.org/content/repositories/releases/' }
}
+
+ configurations.all { resolutionStrategy.cacheChangingModulesFor 0, 'seconds' }
}
project(':core') {
M core/src/net/dermetfan/jigsawPuzzle/puzzle/JigsawPuzzle.java +2 -1
@@ 26,8 26,8 @@ import com.badlogic.gdx.scenes.scene2d.u
import com.badlogic.gdx.scenes.scene2d.utils.Drawable;
import com.badlogic.gdx.utils.Array;
import com.badlogic.gdx.utils.Pools;
+import net.dermetfan.gdx.scenes.scene2d.Scene2DUtils;
import net.dermetfan.jigsawPuzzle.utils.PolygonRegionDrawable;
-import net.dermetfan.utils.libgdx.scene2d.Scene2DUtils;
/** represents a puzzle and manages {@link Piece Pieces}
* @author dermetfan */
@@ 322,6 322,7 @@ public class JigsawPuzzle {
if(piece.isPlacedCorrectly(ref, tolerance)) {
piece.place(ref);
placed(piece);
+ break;
}
}
}
M core/src/net/dermetfan/jigsawPuzzle/utils/PolygonRegionDrawable.java +1 -1
@@ 19,7 19,7 @@ import com.badlogic.gdx.graphics.g2d.Pol
import com.badlogic.gdx.graphics.g2d.PolygonSpriteBatch;
import com.badlogic.gdx.scenes.scene2d.utils.BaseDrawable;
import com.badlogic.gdx.scenes.scene2d.utils.TransformDrawable;
-import net.dermetfan.utils.libgdx.math.GeometryUtils;
+import net.dermetfan.utils.math.GeometryUtils;
/** Drawable for a {@link PolygonRegion}.
* @author dermetfan */