package de.nameless.gameEngine.luncher;
import java.io.IOException;
import javax.swing.JOptionPane;
import javax.swing.text.GapContent;
import de.nameless.gameEngine.core.NEClient;
import de.nameless.graphicEngine.NEGraphicServer;
import de.nameless.graphicEngine.model.NEMesh;
import de.nameless.graphicEngine.animation.lib.*;
import de.nameless.graphicEngine.lib.NEFireBall;
public class MPClientStarter {
public static final int port = 4011;
public static String serverLocation = "scuzzar64";
public static NEClient client;
public static void main(String[] args) throws IOException, InterruptedException {
String name = JOptionPane.showInputDialog("Wie lautet dein nahme?");
System.out.print("Connecting to " + serverLocation + ":" + port + "...................");
client = new NEClient(name);
client.connect(serverLocation, port);
client.waitForGame();
System.out.println("done");
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
e.printStackTrace();
}
System.out.print("setting up display..........................");
client.PlugGfx(new NEGraphicServer());
System.out.println("done");
}
}