Commit a5a99a21 authored by MAhrens's avatar MAhrens
Browse files

Game is not ended anymore when field is empty

parent dfa1f4ad
......@@ -374,23 +374,23 @@ public class GameScreen implements Screen {
FrozenNumbersGame.game.setScreen(FrozenNumbersGame.m_Screens.get("GameOverScreen"));
}
}
if(h.getCenterY()< wHeight / 2.0f){
/*if(h.getCenterY()< wHeight / 2.0f){
checkForEmptyP1 = false;
firstMoveP1 = false;
}
if((h.getCenterY()-20)> wHeight / 2.0f){
checkForEmptyP2 = false;
firstMoveP2 = false;
}
}*/
}
if(!firstMoveP1 && checkForEmptyP1) {
/*if(!firstMoveP1 && checkForEmptyP1) {
FrozenNumbersGame.m_Screens.put("GameOverScreen", new GameOverScreen(p1.score, p2.score, p1));
FrozenNumbersGame.game.setScreen(FrozenNumbersGame.m_Screens.get("GameOverScreen"));
}
if(!firstMoveP2 && checkForEmptyP2) {
FrozenNumbersGame.m_Screens.put("GameOverScreen", new GameOverScreen(p1.score, p2.score, p2));
FrozenNumbersGame.game.setScreen(FrozenNumbersGame.m_Screens.get("GameOverScreen"));
}
}*/
FrozenNumbersGame.viewport.apply(true);
......
  • Bitte nicht auskommentieren, sondern einfach entfernen. Wir haben Git.

Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment