我需要 Flash Media Server 来制作这个项目吗?
我开始了解 RTMFP 在 Flash 中的工作原理,我想知道我需要什么才能实现这一点。
我有这个游戏,Flash 游戏,我想使用 RTMFP,这样其他玩家就可以互相对抗/合作。
想想RTS(星际争霸),我建造单位,其他人也做同样的事情,单位之间互相战斗。
如果我理解正确的话,Cirrus 足以实现这一点,但我也听到一些人说这需要 FMS(Flash Media Server),如果我正确的话,至少对于我的低预算来说,这是相当昂贵的。
那么,假设我有 N 个玩家,他们可以像常规 RTS 在线游戏一样相互连接,Cirrus 是否足够?或者我需要支付 FMS 费用吗?
我还想在比赛结束后记录一些数据,这样我就可以给每个玩家一些积分/金牌/等等。
提前致谢!
Im starting to learn about how RTMFP works in Flash, and I want to know what do I need to make this happen.
I got this game, flash game, and I'd like to use RTMFP so other players can play versus/coop with each other.
Think of a RTS (Starcraft), I build units, some other guy do the same, and units fights with each other.
If I understand correctly, Cirrus is enough to make this happen, but I also heard some guys saying that FMS (Flash Media Server) is required for this, wich is, if Im correct, quite expensive at least for my low budget.
So, let say, I got N players, and they can connect with each other like in a regular RTS online game, is Cirrus enough for this?, or do I need to pay for FMS?
I'd also want to record some data after the match is over, so I can give some points/gold/etc to each player.
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您无需购买 FMS。 PushButton 引擎内置了一个网络组件,据说可以处理低延迟的实时多人游戏:PushButtonEngine 功能。 PlayerIO 看起来像是另一个免费选项。还有很多针对 flash/as3 的付费多人游戏框架。这里有几个,但还有更多:
另外,如果您想买一本书并制定自己的解决方案:Flash 10 多人游戏要点
要回答您的问题,您可能可以使用Cirrus 用于游戏内通信(传输位置、动作等)。但如果您想存储高分、金币或其他任何内容,那么您将需要一个游戏服务器来存储此信息,因为 Cirrus 仅限点对点。上述解决方案之一将是比在 Cirrus 中使用您自己的多人游戏引擎更有效的解决方案。
You do not need to buy FMS. The PushButton Engine has a networking component built in that supposedly handles low-latency real-time multiplayer games: PushButtonEngine Features. And PlayerIO looks like another free option. There are also plenty of paid multiplayer game frameworks for flash/as3. Here are a couple, but there are more:
Also, if you feel like buying a book and whipping up your own solution: Flash 10 Multiplayer Game Essentials
And to answer your question, you probably could use Cirrus for the in-game communication (transmitting locations, actions, etc...). But if you want to store hi scores, or gold, or whatever, then you'll need a game server to store this info, because Cirrus is peer-to-peer only. One of the above mentioned solutions would be a much more efficient solution than rolling your own multiplayer engine in Cirrus.
除了 eterps 建议之外,您还可以查看 Union Platform。它提供了一个您可以自己安装的跨平台服务器,允许以多种语言添加模块,并且有一个名为 Reactor 的 AS3 前端框架,它带来了您可能正在寻找的大量功能。
我现在正在寻找 Union 的用途,因为我非常喜欢它。
也就是说,如果您熟悉 FMS,您可以从 Influxis 如果你可以按照你想要的方式配置它。
In addition to eterps suggestions, you might take a look at Union Platform. It provides a cross-platform server that you can install on your own, allows for modules to be added in a variety of languages, and has a front end framework for AS3 called Reactor that brings a huge pile of functionality you are probably looking for.
I'm looking for a use for Union right now because I like it so much.
That said, if you're familiar with FMS, you can get relatively inexpensive shared hosting for FMS from Influxis if you can get it configured how you'd like.
您可以使用 Cirrus 和 RTMFP 处理玩家之间的所有游戏内通信。 Cirrus 负责让玩家建立连接,但之后所有通信都通过可扩展的 P2P 协议在玩家之间直接发送。为此,不需要 FMS 或任何其他服务器,Flash 会处理所有 P2P 细节,因此实际上非常简单。
至于在游戏会话结束后保存数据,您将需要某种类型的服务器。不过,不一定是 FMS 服务器。您可以以超便宜的价格使用托管的 LAMP 服务器,如果您的玩家基础不是太大,甚至可以使用您自己的具有动态 IP 地址的计算机。如果您选择 LAMP 路线,请查看 AMFPHP 以了解 Flash 和 PHP/MySQL 的对话。
You can use Cirrus and RTMFP to handle all of the in-game communication between players. Cirrus handles getting the players connected, but after that all of the communication is sent directly between the players over a scalable P2P protocol. No need for FMS or any other server for this, and Flash handles all of the P2P details so it's pretty straightforward actually.
As far as saving data after a game session goes, for that you'll want a server of some kind. Doesn't have to be an FMS server, though. You can use a hosted LAMP server for super cheap, or even just use your own computer with a dynamic IP address if your player-base isn't too huge. If you go the LAMP route, look into AMFPHP to get Flash and PHP/MySQL talking.
你其实也不需要。您可以构建自己的服务器和用户套接字来传输数据。
You don't really need either. You can build your own server and user Sockets to transmit the data.