因此,目前我通过IP地址连接到服务器端,但我希望它不需要指定服务器计算机的IP地址。无论如何,我可以检测到一个当前的服务器端口在网络上打开并连接到来自客户端的那个端口上? 这是我写的服务器: server = new ServerSocket(1234,100);
,并在客户端: connection = new Socket(InetAddress.getByName("someIpAddr
我已经做了一个应用程序,你需要射击一个敌人,但有时子弹穿过敌人。 swift sprite kit game when I shoot on a enemy sometimes the bullet goes trough the enemy, how can I fix this? 所以我加了usesPreciseCollisionDetection = true。 但子弹有时仍会穿过敌人。所以