我如何制作网络绘图游戏 [英] How do I make network drawing game

查看:82
本文介绍了我如何制作网络绘图游戏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想允许两个人在相同的图片框上连接在一起。我的意思是我画一条线,朋友连接将首先看到它。一方将作为服务器。最好的做法是什么?我会感谢一些代码

I want to allow two people drawing on same picturebox connected together. I mean I draw a line, friend connected will see it at first. One side will work as a server. What is the best to do it? I would be thankful for some code

推荐答案

为什么一方应该作为服务器工作?

你可以有一台服务器和两个客户端(在我看来,如果服务器本地到其中一个客户端)或者可能是点对点架构并不重要。

我认为第一个选项更好,客户端处理I / O和服务器维护状态和逻辑。
Why should one side work as server?
You could either have a server and two clients (doesn't really matter if the server is local to one of its clients) or possibly a peer-to-peer architecture, in my opinion.
I think the first option is better, with clients handling I/O and the server maintaining the state and the logic.


这篇关于我如何制作网络绘图游戏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆