|
|
|
|
![]() ![]() |
May 23 2006, 10:34 PM
Post
#1
|
|
|
Newbie [Level 3] ![]() ![]() ![]() Group: Members Posts: 47 Joined: 7-May 06 Member No.: 23,184 |
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?
|
|
|
|
May 23 2006, 10:53 PM
Post
#2
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 381 Joined: 1-December 05 From: Xempt..T17 GFX Crew Member No.: 15,202 ![]() |
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! This post has been edited by savge17: May 23 2006, 10:53 PM |
|
|
|
May 23 2006, 11:20 PM
Post
#3
|
|
|
Newbie [Level 3] ![]() ![]() ![]() Group: Members Posts: 47 Joined: 7-May 06 Member No.: 23,184 |
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..
|
|
|
|
May 30 2006, 12:35 AM
Post
#4
|
|
|
Newbie [Level 1] ![]() Group: Members Posts: 12 Joined: 29-May 06 Member No.: 24,489 |
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.
|
|
|
|
Jun 20 2006, 09:40 PM
Post
#5
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 397 Joined: 9-June 06 From: Wisconsin Member No.: 24,924 |
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. CODE <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.--> This post has been edited by ghostrider: Jun 20 2006, 09:40 PM |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 11th October 2008 - 12:01 AM |