Skip to content
Snippets Groups Projects

Draft: Resolve "Create game model"

3 files
+ 9
15
Compare changes
  • Side-by-side
  • Inline

Files

@@ -101,8 +101,10 @@ public class LeaderBoardController {
mouseYCoordinate =Gdx.input.getY();
Vector3 touchPos = new Vector3(Gdx.input.getX(), Gdx.input.getY(), 0);
state.getCam().unproject(touchPos); // convert from screen coordinates to world coordinates
if (leaderBoardView.getNextRoundBounds().contains(touchPos.x, touchPos.y)){
state.getStateManager().setState(new GamePlayState(state.getStateManager(), _FBIC, pin, nickname));
if(leaderBoardView.isHost()) {
if (leaderBoardView.getNextRoundBounds().contains(touchPos.x, touchPos.y)) {
state.getStateManager().setState(new GamePlayState(state.getStateManager(), _FBIC, pin, nickname));
}
}
Loading