commit old stuff from armins hdd
This commit is contained in:
parent
56ccb73055
commit
2b0ca12ccd
|
@ -81,7 +81,8 @@ public class PlayerEntity extends MovingEntity {
|
||||||
ingameprefs.putInteger("currantlvl", currantlvl);
|
ingameprefs.putInteger("currantlvl", currantlvl);
|
||||||
ingameprefs.flush();
|
ingameprefs.flush();
|
||||||
|
|
||||||
if(currantlvl == 4)
|
int maximumlvl = 4;
|
||||||
|
if(currantlvl > maximumlvl)
|
||||||
((Game)Gdx.app.getApplicationListener()).setScreen(new MainMenu());
|
((Game)Gdx.app.getApplicationListener()).setScreen(new MainMenu());
|
||||||
else
|
else
|
||||||
CRGame.Inst().setScreen(new GameScreen(new StaticMapProvider(CRMapStorage.map_map.get(currantlvl))));
|
CRGame.Inst().setScreen(new GameScreen(new StaticMapProvider(CRMapStorage.map_map.get(currantlvl))));
|
||||||
|
|
|
@ -30,17 +30,15 @@ public class SplashScreen implements Screen {
|
||||||
Gdx.gl.glClearColor(1, 1, 1, 1); //Weiß
|
Gdx.gl.glClearColor(1, 1, 1, 1); //Weiß
|
||||||
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
|
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
sB.begin();
|
sB.begin();
|
||||||
sB.draw(logo, -9,
|
sB.draw(logo, -9,-8, 18, 16);
|
||||||
-8, 18, 16);
|
|
||||||
sB.end();
|
sB.end();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void update(float delta) {
|
||||||
loadTime += delta;
|
loadTime += delta;
|
||||||
if (loadTime > 0.9)
|
if (loadTime > 0.9)
|
||||||
((Game) Gdx.app.getApplicationListener()).setScreen(new MainMenu());
|
((Game) Gdx.app.getApplicationListener()).setScreen(new MainMenu());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue