PDA

View Full Version : [PHP/MYSQL] Aiuto, creazione gioco online


tomino87
21-08-2009, 12:06
Ciao a tutti, in questi giorni mi stava balenando una mezza idea in testa di realizzare un gioco online, usando php e mysql (visto che li conosco abbastanza e che sono le due principali caratteristiche che sono offerte maggiormente dagli hosting gratuiti...).
Mi sfugge solo un dettaglio a livello di implementazione: volendo realizzare un gioco in cui più utenti reali giocano a turno... se l'utente A ha fatto la sua mossa, come si fa a dire all' utente B che tocca a lui?
Cioè... che io sappia, di solito il server non può connettersi al client e mandargli info, ma solo il client può connettersi al server e inviare requests.. quindi? Quando A fa la sua mossa, come fa B a sapere che tocca a lui???

Spero di essermi spiegato correttamente... e spero di ricevere risposte!
Grazie,

Piero

Slide
21-08-2009, 13:13
Credo proprio che ti servirà qualche tecnologia lato client che prenda l'iniziativa secondo determinati eventi :) Conosci già Ajax ?
Ci sono buoni framework largamente utilizzati, tipo jQuery o Dojo.

In bocca al lupo!

S.

Hardware Upgrade Forum Database Error
Database Error Database error
The Hardware Upgrade Forum database has encountered a problem.

Please try the following:
  • Load the page again by clicking the Refresh button in your web browser.
  • Open the www.hwupgrade.it home page, then try to open another page.
  • Click the Back button to try another link.
The www.hwupgrade.it forum technical staff have been notified of the error, though you may contact them if the problem persists.
 
We apologise for any inconvenience.