Fixed resetting playState
This commit is contained in:
@@ -53,6 +53,11 @@ public class PlayState extends GameState {
|
||||
comboScore = 0;
|
||||
oldProgress = 0 ;
|
||||
|
||||
for(Path p : area.paths)
|
||||
{
|
||||
p.getEnemysInPath().clear();
|
||||
}
|
||||
|
||||
try {
|
||||
Thread.sleep(2000);
|
||||
} catch (InterruptedException e) {
|
||||
|
||||
@@ -58,4 +58,9 @@ public class InfoPanel {
|
||||
public void draw(Graphics2D g2){
|
||||
g2.drawImage(infoPanel, 0, 0, 256,1024,null);
|
||||
}
|
||||
|
||||
public String getTotalHighscore()
|
||||
{
|
||||
return totalHighscore;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user