in reply to Re^3: What's a good alternative to browser-webapp-webserver for remote apps?
in thread What's a good alternative to browser-webapp-webserver for remote apps?

This generally entails some sort of half-model-plus-protocol that replicates most of the model information on the client.

Ok. So, I'm guessing that means maybe something like:

player:position_x=120;position_y=83;orientation=52.2 ...

and so on for other objects or events in the game (though probably in some more condensed format).

Having written one of these in AJAX, ...

Just curious: what format did you choose for sending your data back and forth? XML? Plain text? Something else?

  • Comment on Re^4: What's a good alternative to browser-webapp-webserver for remote apps?
  • Download Code

Replies are listed 'Best First'.
Re^5: What's a good alternative to browser-webapp-webserver for remote apps?
by dragonchild (Archbishop) on Mar 31, 2008 at 19:10 UTC
    Definitely in some more condensed format, though that condensing can often be provided by mod_deflate / mod_gzip.

    We used JSON which is a proper subset of YAML. Very nice format to work with when chatting with Javascript. It also compresses very well. :-)


    My criteria for good software:
    1. Does it work?
    2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?