endret timerenen og la til show funksjon

This commit is contained in:
Tobydrama 2020-04-02 12:48:28 +02:00
parent 94ed63be3c
commit 5573d571bc

View File

@ -38,9 +38,8 @@ public class LoadingScreen extends AbstractScreen {
applicationHeight/2f,380, 1, true); applicationHeight/2f,380, 1, true);
roboRallyWrapper.batch.end(); roboRallyWrapper.batch.end();
long time = System.currentTimeMillis(); long time = System.currentTimeMillis();
if (time-startTime>10000){ if (time-startTime>5000){
roboRallyWrapper.setScreen(roboRallyWrapper.screenManager.getMainMenuScreen(this.roboRallyWrapper)); roboRallyWrapper.setScreen(roboRallyWrapper.screenManager.getStartMenuScreen(this.roboRallyWrapper));
dispose();
} }
} }
@ -49,4 +48,9 @@ public class LoadingScreen extends AbstractScreen {
viewport.update(width, height); viewport.update(width, height);
} }
@Override
public void show(){
startTime = System.currentTimeMillis();
}
} }