Thoughts on Some Issues in Developing 2 Player Web Browser Based Games
[ 0 Comments ] Posted on 11.01.11 in Arts & Entertainment
I will use the following trivial game as a concrete example. The game will display toys individually (from a large array of them) to the two players. Each player will decide whether he/she like the toy or not. If both of them liked it or once they both disliked it, they are going to each score a point. If one likes it although other does not, no one score any points. The game is so simple that 3 to 5 year old will have no problem to play the idea. To implement such a sport in a web environment, however, can drive a thirty or forty year old crazy.
It is not really difficult to implement this online game, if user experience is not taken into consideration. We can simply send the main toy to both players when the user finished (we. e., if user offers decided whether he likes the toy or not), browser will send a request to your server to post an individual decisions. If the server gets the results from both players, the score can end up calculated and returned to the user. Otherwise, we just tell an individual the score is not ready yet, and they just need to wait for the other user in order to complete. When the other user does finish, we can return the score along with the next toy as the response so the user can start to look at the next one.