diff --git a/android/release/Throwgame_V1.0-alpha.apk b/android/release/Throwgame_V1.0-alpha.apk deleted file mode 100644 index b63a223..0000000 Binary files a/android/release/Throwgame_V1.0-alpha.apk and /dev/null differ diff --git a/android/release/Throwgame_V1.5.1.alpha.apk b/android/release/Throwgame_V1.5.1.alpha.apk deleted file mode 100644 index 5e55e83..0000000 Binary files a/android/release/Throwgame_V1.5.1.alpha.apk and /dev/null differ diff --git a/android/release/android-release.apk b/android/release/android-release.apk index 3679c83..3f58f17 100644 Binary files a/android/release/android-release.apk and b/android/release/android-release.apk differ diff --git a/core/src/controller/Controller.java b/core/src/controller/Controller.java index e8a3258..169a978 100644 --- a/core/src/controller/Controller.java +++ b/core/src/controller/Controller.java @@ -210,6 +210,11 @@ public class Controller extends ApplicationAdapter implements InputProcessor{ else if(ws != null) ws.render(batch); else if(le != null){ le.render(batch); + if(le.getToSave()){ + le.dispose(); + le = null; + ts = new Titlescreen(GAME_WORLD_WIDTH, GAME_WORLD_HEIGHT); + } } batch.end(); } diff --git a/core/src/model/Button.java b/core/src/model/Button.java index 3f40a5d..6771403 100644 --- a/core/src/model/Button.java +++ b/core/src/model/Button.java @@ -19,17 +19,15 @@ public class Button { private int width; private int height; private int id; - private int listId; private Rectangle rect; - public Button(String text, int xPos, int yPos, int width, int height, int id, int listId){ + public Button(String text, int xPos, int yPos, int width, int height, int id){ this.text = text; this.xPos = xPos; this.yPos = yPos; this.width = width; this.height = height; - this.id = id; //0: pivot, 1: goal, 2: rect, 3: addRect - this.listId = listId; + this.id = id; //0: pivot, 1: goal, 2: rect, 3: addRect, 4: save rect = new Rectangle(xPos, yPos, width, height); } @@ -117,8 +115,5 @@ public class Button { public int getId(){ return id; } - public int getListId(){ - return listId; - } } diff --git a/core/src/view/Leveleditor.java b/core/src/view/Leveleditor.java index ee6b3de..24e6439 100644 --- a/core/src/view/Leveleditor.java +++ b/core/src/view/Leveleditor.java @@ -36,44 +36,51 @@ import model.Projectile; * @author Jan */ public class Leveleditor{ - - ShapeRenderer shapeRenderer; - + float GAME_WORLD_WIDTH; float GAME_WORLD_HEIGHT; - + + // SHAPE RENDERER + ShapeRenderer shapeRenderer; + + // BUTTONS ArrayList