diff --git a/android/assets/levels/plevel001.tmx b/android/assets/levels/plevel001.tmx
index cca17ae..0708b74 100644
--- a/android/assets/levels/plevel001.tmx
+++ b/android/assets/levels/plevel001.tmx
@@ -7635,13 +7635,13 @@
-
-
-
-
-
-
-
+
+
+
+
+
+
+
@@ -8135,7 +8135,7 @@
-
+
@@ -8572,6 +8572,10 @@
+
+
+
+
@@ -8619,23 +8623,19 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -9037,31 +9037,18 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
@@ -9082,8 +9069,20 @@
+
+
+
+
+
+
+
+
+
+
+
+
@@ -9124,6 +9123,7 @@
+
@@ -9529,93 +9529,17 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
@@ -9624,6 +9548,28 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -9636,6 +9582,48 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -9653,6 +9641,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
@@ -14027,7 +14027,6 @@
-
@@ -14090,7 +14089,6 @@
-
@@ -14158,15 +14156,14 @@
-
-
+
@@ -14527,7 +14524,6 @@
-
@@ -14590,7 +14586,6 @@
-
@@ -14658,7 +14653,6 @@
-
@@ -14669,6 +14663,7 @@
+
@@ -15027,7 +15022,6 @@
-
@@ -15090,7 +15084,6 @@
-
@@ -15158,7 +15151,6 @@
-
@@ -15171,6 +15163,7 @@
+
@@ -15527,7 +15520,6 @@
-
@@ -15590,7 +15582,6 @@
-
@@ -15658,7 +15649,6 @@
-
@@ -15673,6 +15663,7 @@
+
@@ -16027,7 +16018,6 @@
-
@@ -16090,7 +16080,6 @@
-
@@ -16158,7 +16147,6 @@
-
@@ -16175,6 +16163,7 @@
+
@@ -16527,7 +16516,6 @@
-
@@ -16590,7 +16578,6 @@
-
@@ -16658,7 +16645,6 @@
-
@@ -16677,6 +16663,7 @@
+
@@ -17027,7 +17014,6 @@
-
@@ -17090,7 +17076,6 @@
-
@@ -17158,7 +17143,6 @@
-
@@ -17179,6 +17163,7 @@
+
@@ -17527,7 +17512,6 @@
-
@@ -17590,7 +17574,6 @@
-
@@ -17658,7 +17641,6 @@
-
@@ -17681,6 +17663,7 @@
+
@@ -18027,7 +18010,6 @@
-
@@ -18090,7 +18072,6 @@
-
@@ -18158,7 +18139,6 @@
-
@@ -18183,6 +18163,7 @@
+
@@ -18527,7 +18508,6 @@
-
@@ -18590,7 +18570,6 @@
-
@@ -18658,7 +18637,6 @@
-
@@ -18685,6 +18663,7 @@
+
@@ -19027,7 +19006,6 @@
-
@@ -19090,7 +19068,6 @@
-
@@ -19158,12 +19135,36 @@
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -19590,7 +19591,6 @@
-
diff --git a/android/assets/levels/plevel002.tmx b/android/assets/levels/plevel002.tmx
index 2ba605a..758f79a 100644
--- a/android/assets/levels/plevel002.tmx
+++ b/android/assets/levels/plevel002.tmx
@@ -2066,42 +2066,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -2143,11 +2107,6 @@
-
-
-
-
-
@@ -2171,965 +2130,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-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
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -15070,7 +16247,6 @@
-
@@ -15109,7 +16285,6 @@
-
@@ -15136,7 +16311,6 @@
-
@@ -15187,7 +16361,10 @@
-
+
+
+
+
@@ -15570,7 +16747,6 @@
-
@@ -15609,7 +16785,6 @@
-
@@ -15636,7 +16811,6 @@
-
@@ -15687,7 +16861,10 @@
-
+
+
+
+
@@ -16070,7 +17247,6 @@
-
@@ -16109,7 +17285,6 @@
-
@@ -16136,7 +17311,6 @@
-
@@ -16187,7 +17361,10 @@
-
+
+
+
+
@@ -16570,7 +17747,6 @@
-
@@ -16609,7 +17785,6 @@
-
@@ -16636,7 +17811,6 @@
-
@@ -16687,7 +17861,10 @@
-
+
+
+
+
@@ -17070,7 +18247,6 @@
-
@@ -17109,7 +18285,6 @@
-
@@ -17136,7 +18311,6 @@
-
@@ -17187,7 +18361,10 @@
-
+
+
+
+
@@ -17570,7 +18747,6 @@
-
@@ -17609,7 +18785,6 @@
-
@@ -17636,7 +18811,6 @@
-
@@ -17687,7 +18861,10 @@
-
+
+
+
+
@@ -18070,1183 +19247,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
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-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/android/assets/levels/plevel003.tmx b/android/assets/levels/plevel003.tmx
new file mode 100644
index 0000000..11ff995
--- /dev/null
+++ b/android/assets/levels/plevel003.tmx
@@ -0,0 +1,20014 @@
+
+
diff --git a/android/assets/levels/plevel004.tmx b/android/assets/levels/plevel004.tmx
new file mode 100644
index 0000000..2c18daf
--- /dev/null
+++ b/android/assets/levels/plevel004.tmx
@@ -0,0 +1,20014 @@
+
+
diff --git a/core/src/de/samdev/colorrunner/game/world/entities/gameentities/PlayerEntity.java b/core/src/de/samdev/colorrunner/game/world/entities/gameentities/PlayerEntity.java
index 55c9ee7..7a82630 100644
--- a/core/src/de/samdev/colorrunner/game/world/entities/gameentities/PlayerEntity.java
+++ b/core/src/de/samdev/colorrunner/game/world/entities/gameentities/PlayerEntity.java
@@ -2,8 +2,10 @@ package de.samdev.colorrunner.game.world.entities.gameentities;
import com.badlogic.gdx.Game;
import com.badlogic.gdx.Gdx;
+import com.badlogic.gdx.Preferences;
import com.badlogic.gdx.graphics.Texture;
+import de.samdev.colorrunner.CRGame;
import de.samdev.colorrunner.game.renderer.CRAssets;
import de.samdev.colorrunner.game.world.CRGameWorld;
import de.samdev.colorrunner.game.world.SwipeDirection;
@@ -15,7 +17,11 @@ import de.samdev.colorrunner.game.world.entities.gameentities.controller.RunBott
import de.samdev.colorrunner.game.world.entities.gameentities.controller.FlyPlayerController;
import de.samdev.colorrunner.game.world.entities.gameentities.controller.RunTopPlayerController;
import de.samdev.colorrunner.game.world.entities.gameentities.floor.FloorTileEntity;
+import de.samdev.colorrunner.game.world.map.CRMapStorage;
+import de.samdev.colorrunner.game.world.map.provider.MapProvider;
+import de.samdev.colorrunner.game.world.map.provider.StaticMapProvider;
import de.samdev.colorrunner.game.world.map.provider.TriggerType;
+import de.samdev.colorrunner.screens.gameScreen.GameScreen;
import de.samdev.colorrunner.screens.menu.MainMenu;
public class PlayerEntity extends MovingEntity {
@@ -31,6 +37,8 @@ public class PlayerEntity extends MovingEntity {
private AbstractPlayerController controller;
+ private Preferences ingameprefs = Gdx.app.getPreferences("ingamepreferences");
+
public PlayerEntity(CRGameWorld _owner, float x, float y) {
super(_owner, x, y, PLAYER_WIDTH, PLAYER_HEIGHT);
@@ -59,7 +67,25 @@ public class PlayerEntity extends MovingEntity {
if (controller.getControllerType() != ControllingType.GRAVITY) controller = new GravityPlayerController(this);
break;
case END:
- ((Game)Gdx.app.getApplicationListener()).setScreen(new MainMenu());
+ //((Game)Gdx.app.getApplicationListener()).setScreen(new MainMenu());
+
+ int currantlvl = ingameprefs.getInteger("currantlvl", 1);
+ currantlvl++;
+
+
+ int highestlevel = ingameprefs.getInteger("highestlevel", 1);
+ if(currantlvl > highestlevel)
+ highestlevel = currantlvl;
+
+ ingameprefs.putInteger("highestlevel", highestlevel);
+ ingameprefs.putInteger("currantlvl", currantlvl);
+ ingameprefs.flush();
+
+ if(currantlvl == 4)
+ ((Game)Gdx.app.getApplicationListener()).setScreen(new MainMenu());
+ else
+ CRGame.Inst().setScreen(new GameScreen(new StaticMapProvider(CRMapStorage.map_map.get(currantlvl))));
+
world.music.stop();
break;
}
diff --git a/core/src/de/samdev/colorrunner/game/world/map/CRMapStorage.java b/core/src/de/samdev/colorrunner/game/world/map/CRMapStorage.java
index ed0c0a1..68cb351 100644
--- a/core/src/de/samdev/colorrunner/game/world/map/CRMapStorage.java
+++ b/core/src/de/samdev/colorrunner/game/world/map/CRMapStorage.java
@@ -3,13 +3,15 @@ package de.samdev.colorrunner.game.world.map;
import com.badlogic.gdx.Gdx;
import java.util.ArrayList;
+import java.util.HashMap;
import java.util.List;
+import java.util.Map;
import java.util.Random;
public class CRMapStorage {
public static final List maps = new ArrayList();
- public static final CRTiledMap map_start = load("map_pieces", "p00_start.tmx");
+ public static final CRTiledMap map_start = internalload("map_pieces", "p00_start.tmx", false);
public static final CRTiledMap map_01 = register("map_pieces", "p01.tmx");
public static final CRTiledMap map_02 = register("map_pieces", "p02.tmx");
@@ -38,10 +40,19 @@ public class CRMapStorage {
public static final CRTiledMap map_25 = register("map_pieces", "p25.tmx");
public static final CRTiledMap map_26 = register("map_pieces", "p26.tmx");
- public static final CRTiledMap lvl_01 = load("levels", "plevel001.tmx");
+ public static final CRTiledMap lvl_01 = load("levels", 1, "plevel001.tmx");
+ public static final CRTiledMap lvl_02 = load("levels", 2, "plevel002.tmx");
+ public static final CRTiledMap lvl_03 = load("levels", 3, "plevel003.tmx");
+ public static final CRTiledMap lvl_04 = load("levels", 4, "plevel004.tmx");
- private static CRTiledMap load(String folder, String path) {
- return internalload(folder, path, false);
+ public static Map map_map;
+
+ private static CRTiledMap load(String folder, int mid, String path) {
+ if (map_map == null) map_map = new HashMap();
+
+ CRTiledMap m = internalload(folder, path, false);
+ map_map.put(mid, m);
+ return m;
}
private static CRTiledMap register(String folder, String path) {
diff --git a/core/src/de/samdev/colorrunner/game/world/map/provider/MapProvider.java b/core/src/de/samdev/colorrunner/game/world/map/provider/MapProvider.java
index 7d077e9..cbfa617 100644
--- a/core/src/de/samdev/colorrunner/game/world/map/provider/MapProvider.java
+++ b/core/src/de/samdev/colorrunner/game/world/map/provider/MapProvider.java
@@ -4,6 +4,7 @@ package de.samdev.colorrunner.game.world.map.provider;
import com.badlogic.gdx.math.Rectangle;
import de.samdev.colorrunner.game.world.CRGameWorld;
+import de.samdev.colorrunner.game.world.map.CRTiledMap;
public abstract class MapProvider {
public abstract void init(CRGameWorld world);
diff --git a/core/src/de/samdev/colorrunner/screens/menu/MainMenu.java b/core/src/de/samdev/colorrunner/screens/menu/MainMenu.java
index 82503d8..b297efd 100644
--- a/core/src/de/samdev/colorrunner/screens/menu/MainMenu.java
+++ b/core/src/de/samdev/colorrunner/screens/menu/MainMenu.java
@@ -25,6 +25,7 @@ import de.samdev.colorrunner.screens.gameScreen.GameScreen;
public class MainMenu implements Screen {
private Preferences prefs = Gdx.app.getPreferences("settings");
+ private Preferences ingameprefs = Gdx.app.getPreferences("ingamepreferences");
private Stage stage = new Stage();
private Table table = new Table();
@@ -35,13 +36,12 @@ public class MainMenu implements Screen {
new TextureAtlas(Gdx.files.internal("skins/menuSkin.pack")));
- private TextButton buttonPlay1 = new TextButton("Play Level 1", skin);
+ private TextButton buttonPlay1 = new TextButton("Play Levels", skin);
private TextButton buttonPlay2 = new TextButton("Play Endless", skin);
private TextButton buttonOption = new TextButton("Option", skin);
private TextButton buttonExit = new TextButton("Exit", skin);
-
// folgendes mal als Beispiel :)
/*
button3.setSize(col_width*4,(float)(row_height*2));
@@ -64,7 +64,8 @@ button3.addListener(new InputListener(){
*/
- private Label title = new Label("Color Runner", skin);
+ private Label title = new Label("Color Runner" , skin);
+ private Label highestscore = new Label("Highest Level: " + ingameprefs.getInteger("highestlevel", 1), skin);
public Music music;
@@ -107,7 +108,13 @@ button3.addListener(new InputListener(){
buttonPlay1.addListener(new ClickListener(){
@Override
public void clicked(InputEvent event, float x, float y){
- CRGame.Inst().setScreen(new GameScreen(new StaticMapProvider(CRMapStorage.lvl_01)));
+
+ //int level = ingameprefs.getInteger("highestlevel", 1);
+
+ ingameprefs.putInteger("currantlvl", 1);
+ int currantlvl = ingameprefs.getInteger("currantlvl", 1);
+
+ CRGame.Inst().setScreen(new GameScreen(new StaticMapProvider(CRMapStorage.map_map.get(currantlvl))));
music.stop();
}
});
@@ -136,7 +143,8 @@ button3.addListener(new InputListener(){
table.add(buttonPlay1).size((int)((double)Gdx.graphics.getWidth() / 2.0D),250);
table.add(buttonPlay2).size((int)((double)Gdx.graphics.getWidth() / 2.0D),250).row();
- table.add(title).expand().row();
+ table.add(title).size((int)((double)Gdx.graphics.getWidth() / 2.0D), 62);
+ table.add(highestscore).size((int)((double)Gdx.graphics.getWidth() / 2.0D),62).row();
table.add(buttonOption).size((int)((double)Gdx.graphics.getWidth() / 2.0D),250);
table.add(buttonExit).size((int)((double)Gdx.graphics.getWidth() / 2.0D),250);