PDA

View Full Version : Creating an Online Game



conkermaniac
June 11th, 2003, 09:40
Hi everyone,

I was thinking of designing a very simple game, where four people can play at once over the Internet. Unfortunately, I do not have my own server (nor do I know anything about server management), and all I have is virtual shared hosting. How can I make the game so that it is efficient?

The only method that I came up with is to submit every move to a MySQL database, and have the players refresh their pages often in order to retrieve the latest moves from the database. Does anyone have any better ideas? :)

hohoho
June 11th, 2003, 10:18
maybe a cronjob for every 10-30 sec ?

spec
June 11th, 2003, 12:14
or just have the page auto refresh every 5 seconds.

conkermaniac
June 11th, 2003, 23:28
Originally posted by spec
or just have the page auto refresh every 5 seconds. Yeah, that's my idea at the moment. Would cron jobs be any better? :confused2

Canuckkev
June 11th, 2003, 23:31
Well, I don't think a cron job can auto refresh a users page...

There is a way to get a constant stream of php...oh wait, I think that might just be auto refreshing as well (php chat). I guess you will have to use meta's...or flash.

conkermaniac
June 12th, 2003, 09:28
Canuckkev, thanks for your advice! Unfortunately, I'm not too great with Flash (although I do know an adequate amount), and I am totally clueless as to how it interacts with databases and the server. Could you please advise me or point me in the right direction? Thanks :)