mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-01-31 23:29:36 +01:00
endret timerenen og la til show funksjon
This commit is contained in:
parent
94ed63be3c
commit
5573d571bc
@ -38,9 +38,8 @@ public class LoadingScreen extends AbstractScreen {
|
||||
applicationHeight/2f,380, 1, true);
|
||||
roboRallyWrapper.batch.end();
|
||||
long time = System.currentTimeMillis();
|
||||
if (time-startTime>10000){
|
||||
roboRallyWrapper.setScreen(roboRallyWrapper.screenManager.getMainMenuScreen(this.roboRallyWrapper));
|
||||
dispose();
|
||||
if (time-startTime>5000){
|
||||
roboRallyWrapper.setScreen(roboRallyWrapper.screenManager.getStartMenuScreen(this.roboRallyWrapper));
|
||||
}
|
||||
}
|
||||
|
||||
@ -49,4 +48,9 @@ public class LoadingScreen extends AbstractScreen {
|
||||
viewport.update(width, height);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void show(){
|
||||
startTime = System.currentTimeMillis();
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user