|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Browsergame
Just some brainstorming...
I want to code a browsergame. Various users are forming a party to battle a number of php opponents. The problem is initiative and action. All participants have an initiative score. The combatant with the highest one goes first, then the next and so on. Question: How can I inform a user, that it is her/his turn now? A reload every second is out of question. A fixed turn time or let's say 60 seconds might be to much (or worse to little...). Is there any means to force a reload of a client by the server? Greetings pepebe |
|
#2
|
|||
|
|||
|
RE: Browsergame
i think the simplest way would be to simulate a persistant connection by having a hidden iframe refresh in the background that checks for updates and triggers the target page to reload when necessary.
|
|
#3
|
|||
|
|||
|
RE: Browsergame
Quote:
no way to do this (except maybe with Java), the best you can do is simulate with something similar to what notepad suggested.. |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Programming Theory > Browsergame |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|