commit old stuff from armins hdd

This commit is contained in:
Armin Benz 2017-11-22 17:20:52 +01:00
parent 56ccb73055
commit 2b0ca12ccd
2 changed files with 6 additions and 7 deletions

View File

@ -81,7 +81,8 @@ public class PlayerEntity extends MovingEntity {
ingameprefs.putInteger("currantlvl", currantlvl);
ingameprefs.flush();
if(currantlvl == 4)
int maximumlvl = 4;
if(currantlvl > maximumlvl)
((Game)Gdx.app.getApplicationListener()).setScreen(new MainMenu());
else
CRGame.Inst().setScreen(new GameScreen(new StaticMapProvider(CRMapStorage.map_map.get(currantlvl))));

View File

@ -30,17 +30,15 @@ public class SplashScreen implements Screen {
Gdx.gl.glClearColor(1, 1, 1, 1); //Weiß
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
sB.begin();
sB.draw(logo, -9,
-8, 18, 16);
sB.draw(logo, -9,-8, 18, 16);
sB.end();
}
public void update(float delta) {
loadTime += delta;
if (loadTime > 0.9)
((Game) Gdx.app.getApplicationListener()).setScreen(new MainMenu());
}
@Override