| from the top |
|---|
When you phone in to our skype bot, several things happen. We record the call to a file and then, when you hang up, it gets shunted to a script to pull out the DTMF tones. This number is then sent over to the web server along with the phone number that you called from. The server handles all the game logic - when the box was last claimed, how many points to allocate, etc. The web-facing end is a bit simpler, but is designed to require no refreshes from the user. The game scores are pulled down via an AJAX updater, and the Yahoo! map is updated via a JSON call, although we do a little bit of nifty stuff by only getting changes since we last looked. This handles all the markers in the game, so you can see the takeovers occurring, live. There are, of course, a few other extras: We notify the twitter feeds when a game event occurs (see the links at the bottom) - an ideal feature for when you're out and about playing the game - and soon we'll be employing flickr machine tags to give a photo of the phone box you're hunting for. |