la til server og client variabler

This commit is contained in:
Tobydrama 2020-04-06 15:18:47 +02:00
parent f0fe3aa19f
commit 3059b0a031

View File

@ -16,6 +16,8 @@ public class RoboRallyWrapper extends Game {
public BitmapFont font;
public ScreenManager screenManager;
public IDrawableGame roboRallyGame;
public RoboRallyServer server;
public RoboRallyClient client;
@Override
public void create() {
@ -23,15 +25,6 @@ public class RoboRallyWrapper extends Game {
font = new BitmapFont(Gdx.files.internal("assets/Montserrat-Regular.fnt"));
this.screenManager = new ScreenManager();
this.setScreen(screenManager.getStartMenuScreen(this));
try {
RoboRallyServer server = new RoboRallyServer();
RoboRallyClient client = new RoboRallyClient();
SomeResponse response = new SomeResponse();
response.text = "ÆÆÆÆÆÆÆÆÆ";
server.sendToAllClients(response);
} catch (IOException e) {
e.printStackTrace();
}
}
public void dispose() {