创建一个PHP socket服务器游戏 [英] Creating a PHP socket server for game

查看:211
本文介绍了创建一个PHP socket服务器游戏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个游戏,也有一个想法,一个游戏,一直在学习,我想我需要为项目的语言。这是全球热核战争的一个简单的基于Web的2播放器基于文本的克隆。

I am developing a game, well have an idea for a game and have been learning the languages I thought I needed for the project. It's a simple web based 2 player text based clone of Global Thermonuclear War.

玩家通过一个PHP的形式登录,并自动匹配。游戏的逻辑很简单。玩家A挑选的玩家B的领土攻击之一,此举去,然后将其发送给玩家B.玩家B则使一招服务器和它去,直到没有领土离开了。我一直在学习JavaScript和Ajax,可以在PHP中得到解决。

Players login via A PHP form and are automatically matched. The game logic is fairly simple. Player A picks one of Player B's territories to attack, the move goes to the server which then sends it to Player B. Player B then makes a move and on it goes until there are no territories left. I've been learning Javascript and AJAX and can get around in PHP.

我遇到的问题是,我似乎无法找到有关在PHP创建游戏服务器什么。

The problem I'm having is I can't seem to find anything relevant to creating game servers in php.

一个人能否提供一些材料,我可以读了,或者从这里走。

Can someone suggest some material I could read up on, or where to go from here.

推荐答案

有些项目链接 -

HTTP://$c$c.google.com/p/phpwebsocket/

HTTP://$c$c.google.com/p / PHP-的WebSocket服务器/

通过APE(基于C),你可以实时的服务器和客户机之间的通信。

With APE (based on C), you could real time communication between server and client.

http://www.ape-project.org/

这篇关于创建一个PHP socket服务器游戏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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