R core/src/net/dermetfan/jigsawPuzzle/Constants.java => +0 -24
@@ 1,24 0,0 @@
-/** Copyright 2014 Robin Stumm (serverkorken@gmail.com, http://dermetfan.net)
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License. */
-
-package net.dermetfan.jigsawPuzzle;
-
-/** @author dermetfan */
-public class Constants {
-
- public static final boolean debug = true;
-
- public static final float tolerance = 10;
-
-}
M core/src/net/dermetfan/jigsawPuzzle/screens/PlayScreen.java +2 -5
@@ 29,7 29,6 @@ import com.badlogic.gdx.scenes.scene2d.u
import com.badlogic.gdx.scenes.scene2d.utils.DragAndDrop;
import com.badlogic.gdx.utils.viewport.ScreenViewport;
import net.dermetfan.jigsawPuzzle.Assets;
-import net.dermetfan.jigsawPuzzle.Constants;
import net.dermetfan.jigsawPuzzle.puzzle.JigsawPuzzle;
import net.dermetfan.jigsawPuzzle.puzzle.JigsawPuzzle.Piece;
import net.dermetfan.jigsawPuzzle.puzzle.JigsawPuzzle.Source;
@@ 45,7 44,7 @@ public class PlayScreen extends ScreenAd
public PlayScreen() {
stage = new Stage(new ScreenViewport(), batch); // make the stage use the batch (by default, it creates a SpriteBatch, but we need a PolygonSpriteBatch
- stage.setDebugAll(Constants.debug);
+ stage.setDebugAll(true);
Gdx.input.getTextInput(new TextInputListener() { // temporary solution - ask user for name of the level directory to load psh files (pieces) from
@Override
public void input(String level) {
@@ 70,8 69,6 @@ public class PlayScreen extends ScreenAd
private void start(String level) {
stage.clear(); // clear everything for subsequent calls
Table table = new Table();
- if(Constants.debug)
- table.debug();
table.setFillParent(true); // make table fill the whole stage
stage.addActor(table);
@@ 95,7 92,7 @@ public class PlayScreen extends ScreenAd
DragAndDrop dnd = new DragAndDrop();
dnd.addSource(new Source(board, dnd, puzzle));
- dnd.addTarget(new Target(board, puzzle, Constants.tolerance) {
+ dnd.addTarget(new Target(board, puzzle, 10) {
@Override
protected void solved() {
dialog.hide();