Jump to content
xisto Community
Sign in to follow this  
dazappa

Multiplayer Php Games? i have an inefficient idea

Recommended Posts

Well I was thinking about making a little multiplayer game in php today and I was wondering, how would I do this. Well I came up with an enormous and quite inefficient way..Lets say I wanted to show what users were at the same place as you. Well, I would use databases, 1 to say what location and 1 to say if the players are online. Then if the player is online and at the location, say they're their. I think this is inefficient, but is there any other way?

Share this post


Link to post
Share on other sites

Multiplayer? Interesting. Its a good idea because ive seen very few of these out on flash gaming sites. I have to say I have done one before and it was alot of fun.

 

-But I have never really heard of a php game, I thought that flash was used and somehow these flash files could communicate and interact making a database within itself. Or it adds new information to sepparate folders.

 

If I knew how then I could show you.. but I dont I only really know how to make interactive banners and flash sites sorta.

 

I hope this site helps:

 

http://www.pixel2life.com/

 

You can find alot of useful tutorials there aswell as some indebth walkthroughs on how to use anyhting you want on the listed programs, use the search button- its your best friend! :)

Edited by savge17 (see edit history)

Share this post


Link to post
Share on other sites

This game won't use flash. I don't have mx director or anything, and I really don't feel like paying a lot of money for something, just for a game. It's also supposed to be only in php..

Share this post


Link to post
Share on other sites

I think the idea is great, i often wonder why there are no good free php games out there (at least i haven't found any). With AJAX technology you could easily create many games like card games etc. But the burden on the server would be quite high because the server can't push its contents and the users must constantly make requests and that uses your resurces.

Share this post


Link to post
Share on other sites

That's a great idea ... you can have it so it refreshes the page every x amount of seconds, there is an HTML meta tag that does it *looks it up* ...

This is how I would do it. Have one page (we'll call it page.php). Have it show all the data you need for the game and just have it refresh itself. Put the tag below inside the <HEAD> tags.

<META HTTP-EQUIV="Refresh" CONTENT="5; URL=page.php"><!-- This is written so that it will refresh every 5 seconds.  You can change the 5 to the amount of seconds you want per refresh.  Do consider the user (it gets annoying to have it refresh over and over) and SERVER needs.  The URL should be changed for what URL needs to be refreshed.-->

Edited by ghostrider (see edit history)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.