AaronLLF 0 Newbie Poster

So, I'm making a new game in Java. I am trying to add networking code. I'm using the code at http://download.oracle.com/javase/tutorial/networking/sockets/clientServer.html but I want it so that when the player moves in my game, it updates their location in the server and then updates it to everyone on the server so that they can see he moved. The server will also contain a 2 dimensional array of the player's name and their location. I know the basic IDEA - While holding the movement keys, send the location through the output stream, and then send the location through the input stream.

Also, just for testing purposes, the client will auto-connect to the server using the main void in the main class.

Please help. :D

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.