Commit 80fd5c78 authored by MAhrens's avatar MAhrens
Browse files

Ready is reset to white when new game is started again

parent 27d20ab9
......@@ -137,13 +137,15 @@ public class MainMenuScreen implements Screen {
//Starting game if ready
if (p1_isready && p2_isready) {
m_Screens.put("Game", new GameScreen());
game.setScreen(m_Screens.get("Game"));
//reset for new Game
p1_isready = false;
p2_isready = false;
m_Screens.put("Game", new GameScreen());
p1_ready.setTexture(FrozenNumbersGame.assets.get("sprites/btn_ready_inactive.png", Texture.class));
p2_ready.setTexture(FrozenNumbersGame.assets.get("sprites/btn_ready_inactive.png", Texture.class));
p2_ready.setColor(1, 1, 1, 1);
p1_ready.setColor(1, 1, 1, 1);
p1_isready = false;
p2_isready = false;
game.setScreen(m_Screens.get("Game"));
}
}
......
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