Ok me and my frens need to do up this game. It is pretty simple…
There will only be 2 state of a button “on/off”
And for both state there is like a timer to count how long it has been “on” or “off”
A user can access it thru the website and chooses to switch it on or off… but whatever this user does to the button will be reflected via realtime to any other user that is also accessing the website…
example, me and you enter the site… button is “on”
if u switch it off, i from my computer shld be able to see this change as well…
And the timer shld be able to accurately reflect how long it is on and off
Well, if you want some info to be pushed back at every user connected to the site, you need a constant flow of data to update in real time, and this is normally done thru sockets (xml socket, check www.moock.org on “unity” etc), or you’ll need to time a script execution to every second or so, which will put quite some load/ suck a lot of bandwidth, and then refresh the page to get in the new content…which I’m sure isn’t the desired effect…