流星js和多人游戏 [英] Meteor js and multiplayer games

查看:128
本文介绍了流星js和多人游戏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始学习Meteor,我意识到由于它的反应性,它可能是简单多人游戏的好方法。客户端 - 最小数据库 - 客户端之间的实时交换是否足够快以便交换玩家坐标?或者这是一个糟糕的解决方案,我应该在没有中间数据库的情况下进行,只需要直接的Web套接字连接?多人游戏概念对我来说是新的,所以也许我一直都错了。

I started to learn Meteor and I realized that it could probably be good solution for simple multiplayer game because of its reactivity. Is real time exchange between client-minimongo-database-client fast enough for exchanging player coordinates? Or it is bad solution and I should do it without database in the middle, just with direct web sockets connection? Multiplayer concept is new to me, so maybe I'm wrong all the way.

推荐答案

Meteor是迄今为止其他实时技术中最好的技术。 Meteor在内存管理和请求处理方面都非常快速。我已经在CENTOS Linux发行版VPS服务器上部署了Meteor(理想情况下,只需一个命令mup就可以选择DebianOS,因为它易于部署。)

Meteor is by far the best of the best technology available among the other realtime technologies. Meteor is so efficiently fast both in terms of memory management and request handling. I have already deployed a Meteor on a CENTOS Linux distribution VPS server (Ideally you must choose DebianOS for its ease of deployment with just one command "mup").

流星是完整的堆栈就绪包装材料,您只需要掌握JavaScript知识并了解Meteor。以下是市场上可用的其他一些实时技术,如

Meteor is full stack ready packaged material where you just need to have JavaScript knowledge and Meteor know how. Below are some other realtime technologies available in market like,


  1. PHP(Laravel / Yii2)+ REDIS + SOCKET.IO OR

  2. JAVA(Play Framework)+ HAZELCAST + SOCKET.IO

  3. REACT + FLUX

  4. REACT + REDUX 聚合物等。

  1. PHP(Laravel/ Yii2) + REDIS + SOCKET.IO OR
  2. JAVA(Play Framework) + HAZELCAST + SOCKET.IO OR
  3. REACT + FLUX OR
  4. REACT + REDUX, Polymer etc.

您必须学习每个框架并研究系统的性能基准测试,而在Meteor中,您只需要开始使用框架。流星学习曲线几乎是平的,如果你对javascript没问题,你绝对可以选择Meteor JS。

You will have to learn every framework and study the performance benchmarking on your system, whereas in Meteor, you just need to kick start with framework. Meteor learning curves is almost flat, if you are ok with javascript, you can definitely go for Meteor JS.

要开始通过视频学习,下面是链接

To start learning via videos , below are the links


  1. Intermediate LevelUp tuts

  2. Meteor 1.4的基本演练

您可以在计算机上轻松安装Meteor。然后在你想要的目录级别运行下面的命令;

You can easily install Meteor on your machine. then just run command below at you desired directory level;


meteor create --full your-project-name

通过上述项目,您将了解Meteor 1.4.4.2最新架构和文件夹结构的基本流程。

With above project you wil understand the basic flow of latest architecture and folder structure of Meteor 1.4.4.2 latest.


注意:据我所知,Meteor资金充足,并且凭借其
社区支持而大幅增长。我已经研究了上述所有技术,
Meteor将您的项目开发工作减少了超过
时间和人力的一半。您可以单独使用Meteor
开发一个巨大的网站,而不需要人力。

NOTE : Meteor is heavily funded as I know and has drasctically grown with its community support. I have worked on all above mentioned technologies, Meteor reduces your project development efforts by more than half of time and man power. You can develop a Huge website alone with Meteor without needing man power for it.

这篇关于流星js和多人游戏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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