使用PhP/MySQL服务器和JavaScript/jQuery客户端对多人游戏进行编程 [英] Programming a multiplayer game with a PhP/MySQL server, and JavaScript/jQuery clients

查看:54
本文介绍了使用PhP/MySQL服务器和JavaScript/jQuery客户端对多人游戏进行编程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是情况.我想根据MediaWiki提供的内容开发一款游戏. MediaWiki基于PhP,并具有MySQL作为数据库.到目前为止,我已经使用JavaScript和jQuery制作了客户端动画.

Here is the situation. I would like to develop a game based on content delivered by MediaWiki. MediaWiki is PhP based and has MySQL as database. So far, I did the client side animations using JavaScript and jQuery.

游戏不一定必须是实时的.我只想在与我对抗的人在一两秒钟之内做出举动时得到通知.

The game doesn't have to be strictly real-time. I simply want to be notified when the person I am playing against makes a move, within a second or two.

您对我可能要考虑的合适方法有建议吗?

Do you have suggestions about suitable approaches I might want to consider?

推荐答案

如果您正在使用新的编程方法,您可能还会对 node.js 和整个 WebSockets 之类的东西. 在YouTube上播放的视频使您了解了如何使用WebSockets(也看看相关的.)

If you are into new programming approaches, you also may be interested in node.js and the whole WebSockets thing. This video on YouTube gives you an idea of what you can do with WebSockets (also check out the related ones).

这篇关于使用PhP/MySQL服务器和JavaScript/jQuery客户端对多人游戏进行编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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