DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   PHP (http://www.daniweb.com/forums/forum17.html)
-   -   PHP Gaming basics (http://www.daniweb.com/forums/thread160485.html)

JRiga Dec 2nd, 2008 11:37 pm
PHP Gaming basics
 
I'm trying to develop a game that can be played by 2 players on different clients, and I can't figure out the mechanism how the server can communicate to both sites for the same game. A move on one browser gets communicated to the server, and the server must reply to both players. I understand PHP somewhat, but need help. I have developed the game on the browser using Javascript, which can be seen at www.dynodice.com . I'm a professional programmer with 40 years experience, but I'm a bit weak in this kind of gaming. Any advice?

Will Gresham Dec 3rd, 2008 1:01 am
Re: PHP Gaming basics
 
Store the data in a database, get the clients to refresh/check the database at set intervals..

JRiga Dec 3rd, 2008 9:34 pm
Re: PHP Gaming basics
 
Thanks for your advice. That's exactly the direction I needed.


All times are GMT -4. The time now is 2:36 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC