I have similar questions.
Although my game is not MMORPG, it’s a simple fighter game.
I’ve managed to get simple communications to work, like client sends X-axis coordinate to server, and server echos back those same coordinates.
Forgive me about these stupid questions, but:
For DataOutputStream there is the method, writeInt(int). How do I send X and Y coordinates, and make the server tell the difference? It seems I can only send primitives over, so I need a way for the server to determine what is what. Would I send over a String in some predetermined format? Like: “324,134” to indicate x,y point?
There are few properties I need to send to the server; X location, Y location, how the unit is rotated (Angle), Health.
Also, so I simply write this information to the dataoutputstream for each gameloop?
edit: sorry for the hijack
topics look similar, and didn’t want repost this question.