Ok, I've taken your advice into having the Game extends from JPanel. But what if I want the paint methods to be in another class? that's why I created a Drawer. what do you recommend here? Drawer should extend from what??

I'm implementing BufferStrategy, as son as I have it working I'm going to post here with results.

I've read tons of examples of how to implement it, but all sites use different methods, and I just tried to use the most convenient.The problem is simple: when Draw() method is called, graphics returns null, and doesn't let me draw anything into it.

it doesn't do just 6 updates per frame, it does all the necessary updates per frame, the only thing is that it only sends 6 commands per frame because is the maximum number of commands a player can make at the same time (for example, you can select 6 units at the moment, and send them to do something)

I added the tcpnodelayoption and works faster, even so, is still very slow...I'm going to explain in detail what I'm doing so you can help me...

every time the client gives a unit a new order, that order is stored on the Information object.

on the principal thread, client and server are always sending and receiving data, so, in this case, server receives this information object, processes it, and returns it back to the client...

this happens every step, is this causing the game to be slow? it's very frustating you know...

the thing is, how does the server knows that the client received the approval?if the client says, "hey, I received the approval, I'm going to move on next turn!" the how does the client know that the server received this?

In a short term, If a pack of information is lost, then the game will be desync and I have no way to test that...

Hi! the question is simple.Considering the lockstep model, let's suppose I have user A and B.

A wants to move a unit, so it sends the command to BB receives the command and tells A that they will execute the command at step 5A receives the message

the problem is, from the point of view of B, how do B know that A received the message? ok, I can say that A tells B that it received the message succesfully and the will move at step 5...but again....now how do A know that B received this last message?

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org