在线多人游戏 Qbasic Gorillas?

发布于 2024-09-14 15:49:22 字数 512 浏览 3 评论 0原文

我想和住在佛罗里达州的人玩 Qbasic Gorillas 游戏。

这是网上的Flash版本 Gorillas

此链接指向某人关于他编写的重制版的帖子 - 那里是上面游戏的链接以及他的源代码 playerio.com


If possible, how can I modify the code so that I can play against them over the innernet?

游戏应该是公开的、私人的还是两者的结合?

如果您可以使用各自的角度/速度输入重播投掷或整轮比赛,那就太酷了。

I want to play that Qbasic Gorillas game with someone that lives in Florida.

Here's the flash version online
Gorillas

This link is to someone's post about the remake he programmed - there is a link to the game above in there and also his source code for it
playerio.com


If possible, how can I modify the code so that I can play against them over the innernet?

Should the game be public, private, or some combination of both?

It would also be cool if you could replay tosses or entire rounds with their respective angle/velocity inputs.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

零度° 2024-09-21 15:49:22

看看套接字。套接字是通过互联网连接两台计算机的方式。在大多数套接字实现中,都有一个服务器套接字和一个客户端套接字。服务器套接字侦听连接,客户端套接字尝试连接到服务器套接字。在只有您和您的朋友的情况下,你们中的哪一个是服务器或客户端并不重要,但您必须为两者进行编程。您还必须选择要使用的协议。在线游戏的两种协议是 TCP 和 UDP。 TCP 是最常见的,它是可靠的“有保证”连接(TCP 会发送重要的数据)。 UDP 是一种无连接协议,客户端仅发送数据,不保证数据实际到达那里。 UDP 主要用于在线游戏中非常频繁的更新(例如,UDP 最有可能用于在第一人称射击游戏中发送位置数据)。因此,考虑到您的协议,我将首先向游戏添加一个简单的聊天功能。这样,您就可以看到某些事情正在发挥作用,并开始更好地了解正在发生的事情。

Take a look at sockets. Sockets are how you can connect two computers over the internet. In most implementations of sockets, you have a server socket and a client socket. The server socket listens for connections, and the client socket tries to connect to a server socket. In your case with just you and your friend, it doesn't matter much which of you is the server or client, but you will have to program for both. You also have to choose a protocol to use. The two protocols for online gaming are TCP and UDP. TCP is the most common and it is a reliable "guaranteed" connection (TCP would send data that is important). UDP is a connectionless protocol where the client just sends data with no guarantee that the data will actually get there. UDP is mostly used for very frequent updates in online games (UDP would most likely be used to send positional data in a first person shooter for example). So with your protocol in mind, I would start by adding a simple chat feature to the game. That way, you can see something working and start to understand what is happening better.

未蓝澄海的烟 2024-09-21 15:49:22

只是建议一种替代方法,如果您想玩本地多人游戏,您可以设置 DosBox 或虚拟机,然后安装一个双方都可以登录的 VNC 服务器。这将为您提供 KVM 控制。

因为这是一个轮到你的游戏。您甚至可以使用能够共享键盘和鼠标输入的聊天应用程序。

Just to suggest an alternative approach, if you want to play a game that is local multiplayer, you could set up DosBox or a Virtual Machine and then install a VNC server that both of you can log into. This would give you both KVM control.

Since it is a take-your-turn game. you could even use a chat application that has the ability to share keyboard and mouse input.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文