84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
自己打算用java做个联机版的坦克大战,但是在联机一块卡住了效果差不多就是:1个服务端,然后很多客户端连接过来,实现多人联机但是问题来了,首先里面有子弹集合,各种坦克的坐标,我该如何用socket进行传输就算传输了过去,服务端又如何进行分辨,哪些数据是描述坐标的,哪些数据是描述炮弹的请大家支个招,给个思路
光阴似箭催人老,日月如移越少年。
I have written the backend of VR products before. The simplest solution is:
The server is responsible for distributing data
Select a host in the client to complete the calculations of the physics engine and then distribute it to the sub-clients
The sub-client only synchronizes and receives data, but does not perform calculations.
I have written the backend of VR products before. The simplest solution is:
The server is responsible for distributing data
Select a host in the client to complete the calculations of the physics engine and then distribute it to the sub-clients
The sub-client only synchronizes and receives data, but does not perform calculations.