实时图形浏览器mmo游戏,语言选项?

我对一些较旧的主题有所了解,但由于有很多新技术可用于创建网页内容,我必须 再问一遍。</ p>

我的背景:</ strong>
我非常了解xhtml / css / javascript / php / mysql。 我可以从头开始创建一个网店,包括一个全面的数据库和一个可以轻松添加/修改产品的cms。 我很乐意使用PHP和mysql来存储数据。 尝试部落战争克隆并没有吓到我。 我还用c#/ xna做了几场比赛,但我还在考虑自己新手。 我涉足闪光灯并且觉得这可能用于获得我想要的结果。</ p>

我的项目:</ strong>
2D mmo战术射击游戏。 玩家应该能够跨越相当大的地图并快速获得其他用户的位置更新。 游戏将包含大量地图,大多数地图应该只能处理几个玩家。 然而,中心地图和感兴趣的地图应该能够处理至少100名没有滞后的玩家。</ p>

如果可以在地图上实时解决战斗会很棒但我已经想到了其他 解决此问题的方法,例如打开玩家可以进入参加战斗的实例地图。 我也在考虑在战斗中采用更具战术性的回合制方法,但这取决于实时战斗的专业和控制。</ p>

总结一下:</ strong> \ 我确信我可以管理除图形实现之外的所有内容。 Mysql在几毫秒内查询本地玩家位置应该不会有太多麻烦。</ p>

我在一个名为Deeppolis的游戏中看到了一个非常类似于我想要的游戏。 我仍在考虑将其作为一个可下载的客户端,但我非常感兴趣的是,如果我打算使用基于浏览器的游戏来吸引更多人,那么我的选择是什么。</ p>

< 感谢您阅读此文本墙:D。</ p>
</ div>

展开原文

原文

i cam across some older topics about this but since there is a lot of new techniques for creating web content i have to ask again.

My background: I have good knowledge of xhtml/css/javascript/php/mysql. I have no trouble making a webshop from scratch including a comprehensive database and a cms to easily add/modify products. I am very comfortable using PHP and mysql to store data. A attempt at a tribal wars clone does not scare me at all. I also made a couple of games with c#/xna but i am still considering myself novice. I dabbled with flash and feel this could probably be used to get the result i want.

My project: A 2D mmo tactical shooter. Players should be able to move across a fairly large maps and get position updates of other users very quickly. The game will hold a lot of maps and most maps should be able to handle just a couple of players. Hub maps and maps of interest however should be able to handle at least 100 players without lag.

It would be awesome if combat could be resolved real time on the map but i already thought of other ways to resolve this like opening an instance map where players could enter to join combat. I'm also considering a more tactical turn based approach on combat but it depends on the pro's and con's of real time combat.

To sum it up: I am sure i can manage everything except for the graphical implementation. Mysql should not have much trouble querying the local player positions in a couple of milliseconds.

I cam across a game named Deeppolis that pretty much resembles graphically what i want. I'm still considering making this as a downloadable client but i am very interested what my options are if i'm going to do this browser based as browser based games tend to get more people attracted.

Thanks for reading this wall of text :D.

drtohng5613
drtohng5613 AIR是某种api/扩展?我会调查一下。我也将研究流星,但下面的答案表明我使用听起来很聪明的插座:D。
8 年多之前 回复
dty47696
dty47696 看主题。
8 年多之前 回复
dsmnedc798226
dsmnedc798226 不完全确定这是否是您正在寻找的,但似乎它可能是一个有趣的选择:meteor.com它使用mongoDB作为数据存储区,因此它应该对所有参与者进行非常快速的读/写操作。
8 年多之前 回复
dongyun3897
dongyun3897 在这个时间点,Flash是你最好的选择。您也可以使用AIR将其包装起来,使其成为可下载的客户端,几乎不做任何修改。
8 年多之前 回复
douyaosi3164
douyaosi3164 好的,问题是什么?
8 年多之前 回复

1个回答

you would not want to "query mysql" to get player positions if this is real time. You will want to create a socket server that all clients connect to. the socket server would keep a subscriber list of all connected clients in memory. this way when one client sends a message to the socket server, the socket server can immediately push needed data to whichever clients need it. you would also want to keep a model of the game state in memory in your socket server to prevent cheating etc. you would only use a database for long term storage, everything else should be in memory. also keep in mind shared servers will likely not allow you access to sockets to create a socket server, so you will need a private server.

client side: javascript & socket.io (socket client)

server side: javascript & node.js (socket server)

duanbangzhou7809
duanbangzhou7809 w3schools.com/html5/html5_canvas.asp
8 年多之前 回复
dscqrkvr9562034621
dscqrkvr9562034621 首先,Flash可以自己建立套接字连接而无需javascript。 第二,使用html5和chrome之类的浏览器,我很想知道你认为你可以用Flash直观地做什么,你不能用javascript做什么? 另外,javascript可以使用PhoneGap转换为iPhone和Android原生应用。 Flash的唯一优势是与旧浏览器的向后兼容性。
8 年多之前 回复
duanou3868
duanou3868 那么你建议我使用javascript套接字。 但是javascript对于我想要的视觉效果来说还不够(我认为)。 我真的需要像闪光灯这样的东西让它看起来很有吸引力 这就是为什么我需要同时使用它们。
8 年多之前 回复
douweida2878
douweida2878 你为什么要用这两个? flash不需要javascript来制作这样的东西,javascript只需要socket.io来制作这样的东西。
8 年多之前 回复
douba8048
douba8048 好的,谢谢你,我会调查一下。 javascript之间的javascript实现良好吗?
8 年多之前 回复
dpqvwgr74759
dpqvwgr74759 在2008年做了这个实时的mmo:tenthtower.com
8 年多之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐