Java client and server problems -


I have edited this post based on the recommendation by a fellow user.

My specific problems are:

Currently when I run Server.java, it increases a map with a player on it, you can not move the player That is what I wanted, it creates a new "run game".

This idea occurs when I run the client java, it enables the player to move around the map by creating a new craft object, because it is now, for some reason, that player Creates another map with (two are running) and none of which is the movement.

I'm not sure how to explain this further, what would I want to know is that there is a server and client who builds the background, and connects the object that runs through the key, But when a client is connected to the server?

I hope this is a better word than my last attempt.

Thank you.

Echnology is special without looking at t, i think that by stepping back and looking at the overall architecture it will be creative here .

Which state should be shared? From above I think that this game board and two players are in position. That's why I kept it in a server process. Now the client process (a different example per player , but one executable) just needs to connect with other players, make moves and get new board information.

The server process includes the board, play of state etc. The client should be able to reflect only by drawing the board representing that server and handling player input. I think you need to deploy a server, and a different example of a client per user

/ P>

Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -