Live Current Games List
The side menu that lists your current games is now 'Live' in the sense that it will appear in your list within 10 seconds of a player moving in it. There are some limitations at the moment, for example it won't show you games where you can promt, have a message, or the game has ended - you'll have to wait until a full page refresh for that. I will get these limitation sorted once I've come up with a really good, stable and consistent way of doing all of this Ajax stuff.
In my previous post I talked about the XML file format for an updated game. Well, here's some text data from my own computer that the server sent when asking for games to add to the side menu:
Pretty cool, huh?
In my previous post I talked about the XML file format for an updated game. Well, here's some text data from my own computer that the server sent when asking for games to add to the side menu:
<games_list_games lastupdate="1144442712">
<game game_id="159" curplayer_id="2" status="CURRENT" clockticking="1" tournament_id="0">
<player1 user_id="2" username="Woof"/>
<player2 user_id="7" username="SteRobson"/>
</game>
<game game_id="199" curplayer_id="2" status="CURRENT" clockticking="1" tournament_id="17">
<player1 user_id="7" username="SteRobson"/>
<player2 user_id="2" username="Woof"/>
</game>
<game game_id="4001" curplayer_id="2" status="CURRENT" clockticking="1" tournament_id="0">
<player1 user_id="7" username="SteRobson"/>
<player2 user_id="2" username="Woof"/>
</game>
</games_list_games>
Pretty cool, huh?

0 Comments:
Post a Comment
<< Home