Firstly, I've read the (incredibly helpful) AJAX tutorials and have poured over Izes' many helpful examples. The problem I'm having is mostly to due with my inexperience with PHP (and my interminably thick skull).
Before I begin, some setup: My intention is to create a game that presents an obstacle to a player, first calling to a server-side file using AJAX that checks a variable's number stored in the file--lets say the value is "0." Just one character, 0. If the value is 0, the obstacle remains.
The player presses "X," which prompts C2 to call using AJAX, writing and replacing the old character found in the server-side file (0) with a new character: 1. Binary stuff. Now, once the call is made to read the file in future, the callback is "1," as opposed to the "0." If the value is 1, the obstacle disappears! Wunderbar!
Is there any kind coding wizard that can help me? Or perhaps someone helpful enough to point me to some resources that they feel might help me out the most? Again, I've read the tutorials--is there something I'm missing? Thanks, guys.