Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

After trying to use red5 for my turn-based multiplayer game, I've decided to give AMF a try using amfphp, because of the expensive media server hosting solutions. (With AMF all I need is a web server). The game is a simple turn based game. It uses Box2D for physics. Its similar to pool or billiards. More than two users should be able to play in one game 'table'. Is it OK to use AMF in this situation? Also which one should I use? ZendAMF or AMFPHP?

Features: No. of players >= 2 in each 'room' or 'table', turn-based, multiple rooms.

I've heard games like farmville use AMF. Does zynga's poker game also use AMF? How does one player get info on what the other player is doing? Do they do a timed checking for any changes, similar to polling? How can changes or 'moves' made by one player be updated to everyone? Since the connection is terminated after every request unlike in a socket connection.

share|improve this question
You have edited in several more questions which aren't directly related to your initial question. I suggest you create a new question for these, I'm sure you'll get better answers that way. – bummzack Apr 3 '11 at 8:52
As I read more I get more questions sadly. Since they're related I try to bunch em up together. I see u've answered many of my questions. Thank you. – Astromaz3 Apr 4 '11 at 5:42
It's ok that you have more question. I was just suggesting you put them in a separate question, chances are better you get an answer that way. – bummzack Apr 4 '11 at 6:54
up vote 1 down vote accepted

If you have a normal web hosting, you won't be able to run socket connections. So your game has to constantly fetch the updates from the server by issuing a HTTP request. For a turn-based game this might be ok, but probably won't work if you want to simulate your pool billiard on the server and update the clients (to prevent cheating).

Now as for which AMF implementation to use: AMFPHP is quite easy to setup and get going, but AFAIK it's no longer actively developed. If you have some experience with the Zend Framework (or would like to learn it), definitely stick with the Zend version.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.