@@ -56,8 +56,6 @@ public MainMenuScreen(Game game, MultiplayerController mController) {
guiCam.position.set(0, 0, 0);
batch.setProjectionMatrix(guiCam.combined);



createBounds = new Rectangle(Gdx.graphics.getWidth() / 3,
Gdx.graphics.getHeight() - Gdx.graphics.getHeight() / 4,
Gdx.graphics.getWidth() / 4,
@@ -89,13 +87,11 @@ public MainMenuScreen(Game game, MultiplayerController mController) {

this.mController = mController;
debugText = mController.getIpAddress();

mController.startRecording();
}

public void update() {
// if (Gdx.input.isTouched()) {
// game.setScreen(new GameScreen(game, mController));
// }

if (Gdx.input.justTouched() && !hideButtons) {
guiCam.unproject(touchpoint.set(Gdx.input.getX(), Gdx.input.getY(), 0));

@@ -178,14 +174,16 @@ private void createBasicSkin(){
@Override
public void onConnected() {
debugText = "Connected to socket";
mController.setCallback(gameClient);
mController.startRecording();
// mController.showNotification("Found game");

Timer.schedule(new Timer.Task() {
@Override
public void run() {
game.setScreen(new GameScreen(game, mController, gameClient));
}
}, 2);
}, 0.5f);
}

@Override
@@ -8,10 +8,11 @@ public interface MultiplayerController {
String TAG = "mygdxgame";

String getIpAddress();
boolean isReachable(String ip);
boolean isConnectedToLocalNetwork();

void log(String message);
void showNotification(String message);
void startRecording();
void setCallback(GameClientInterface callback);
void transmit(byte[] message, int bufferSize);
}
@@ -13,7 +13,7 @@ public MyGdxGame(MultiplayerController mController) {

@Override
public void create () {
setScreen(new GameScreen(this, mController));
setScreen(new MainMenuScreen(this, mController));
}

@Override