Programming Theory
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesProgramming Theory

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old June 15th, 2005, 10:50 AM
pepebe pepebe is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 1 pepebe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old June 16th, 2005, 07:26 PM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to notepad
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.

Reply With Quote
  #3  
Old June 27th, 2005, 02:48 AM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
RE: Browsergame

Quote:
Is there any means to force a reload of a client by the server?


no way to do this (except maybe with Java), the best you can do is simulate with something similar to what notepad suggested..

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesProgramming Theory > Browsergame


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway