Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
一开始我想保持简单。基本上允许两个人用箭头键移动两个方格,也许让他们检测到他们何时互相撞击。
以最抽象的方式:
除非您还想编写某种分布式网络代码(提示:您不需要。)
几乎任何类型的“服务器”都可以做到这一点。服务器将让玩家互相交谈。
一旦你得到消息在用户之间流动,那么你需要弄清楚如何处理他们。
如果我是你,我会去查找一些基本的聊天室软件,那里有很多,它会告诉你一种进行消息传递的方法。然后也许尝试看看是否有某种方法可以在此基础上构建游戏。
可能重复: 这个符号在 PHP <?= Reference php × 1429865 c/c++ × 756500 nginx × 49975 mongodb × 159057 mybatis × 3233 anaconda × 13410 pycharm × 14671 python × 1902243 vscode × 56040 docker × 110988 github × 49000 flask × 49129 ffmpeg × 24037 jmeter × 16910 matplotlib × 63493 bootstrap × 54641