How to update a game off a database
Posted
by
James Clifton
on Game Development
See other posts from Game Development
or by James Clifton
Published on 2012-06-04T01:55:31Z
Indexed on
2012/06/04
4:48 UTC
Read the original article
Hit count: 387
game-design
I am currently writing a sports strategy management game (cricket) in PHP, with a MYSQL database, and I have come across one stumbling block - how do I update games where neither player is online?
Cricket is a game played between two players, and when they (or one of them) is online then everything is fine; but what if neither player is online? This occurs when championship games are played, and these games need to happen at certain times for game reasons.
At the moment I have a private web page that updates every 5 seconds, and each time it loads all games are updated; but then I have the problem that when my private web page stops (for example my computer crashes or my web browser plays up) the game stops updating!
Any suggestions?
© Game Development or respective owner