The Daily Click ::. Forums ::. Non-Klik Coding Help ::. Games in... PHP?
 

Post Reply  Post Oekaki 
 

Posted By Message

Imp of Hazard Games



Registered
  27/08/2003
Points
  781
7th June, 2004 at 11:15:53 -

Yesterday, an idea came to my mind, to try to make a game in... php :S I thought it was a cool challenge, and made a remake of "Flippers" - you have a field of caps, some are with red side up, some with black. You are to turn all caps red side up, but when you turn a cap, all other caps in it's row and column get reversed. Try this game http://www.hazard-games.com/test/flippers.php and tell me if you have ever made a game in PHP!

Image Edited by the Author.

 
I need painters, musicians and animators!

Pete Nattress

Cheesy Bits img src/uploads/sccheesegif

Registered
  23/09/2002
Points
  4811
7th June, 2004 at 17:04:58 -

haha, pretty cool, i imagine that'd be the extent of PHP's abilites though for real time games! you could make an MMORPG such as project rockstar (www.projectrockstar.com) fairly easily - i think that particular one is ASP, but we all know PHP is better.

 
www.thenatflap.co.uk

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
7th June, 2004 at 17:46:27 -

Another MMORPG
www.barponline.com
combination of asp and cgi I think.

 
Craps, I'm an old man!

Weston L



Registered
  16/12/2002
Points
  1603
7th June, 2004 at 23:13:44 -

Wow. Is it possible to win?

 
n/a

Kramy



Registered
  08/06/2002
Points
  1888
8th June, 2004 at 02:12:21 -

Neat. If you combine php with javascript you might be able to remove the load times between clicks.(or just use javascript for games that don't require server-side stuff)

Never made a game in php.

 
Kramy

Imp of Hazard Games



Registered
  27/08/2003
Points
  781
8th June, 2004 at 10:56:23 -

Sure it's possible to win, as the mechanizm of generating the playfield is so:
1. You have a field that is complete
2. The script emulates as many clicks as you have stated in "Difficluty" field.
3. You are to guess which cells were clicked and click them in reversed order.

Making a MMORPG alone is too hard. If only someone joined me and I had time... The main problem is that I use text databases

 
I need painters, musicians and animators!

Pete Nattress

Cheesy Bits img src/uploads/sccheesegif

Registered
  23/09/2002
Points
  4811
8th June, 2004 at 12:30:52 -

:| do you have an aversion to MySql?

 
www.thenatflap.co.uk

Kramy



Registered
  08/06/2002
Points
  1888
8th June, 2004 at 13:50:48 -

Hey, I found the 5x5 pattern. Just beat 25 difficulty twice, once in only 6 moves.

 
Kramy

Imp of Hazard Games



Registered
  27/08/2003
Points
  781
8th June, 2004 at 13:53:49 -

No, it just works in another way than I got used to, and my hosting doesn't support it cause it's very cheap. And, MySQL is good for searching, and I don't often add this feature anywhere. For me, it's easier to print out the whole file then to "SELECT * FROM database1 WHERE...."

 
I need painters, musicians and animators!

Pete Nattress

Cheesy Bits img src/uploads/sccheesegif

Registered
  23/09/2002
Points
  4811
8th June, 2004 at 19:15:48 -

how do you handle deletions in a text file DB? (never tried it in php)

surely it's not as simple as "DELETE FROM x WHERE id='y'"

 
www.thenatflap.co.uk

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
9th June, 2004 at 01:36:25 -

http://www.kingdomofloathing.com/
Best php game evar.

 
n/a

Imp of Hazard Games



Registered
  27/08/2003
Points
  781
9th June, 2004 at 11:02:20 -

Yeah, not that simple.
First you load the whole file by $data=file("data.dat");
Then you set $data[$id]="";
And then you clear the file and put everything back into it.

 
I need painters, musicians and animators!

ShadowCaster

Possibly Insane

Registered
  02/01/2002
Points
  2203
9th June, 2004 at 20:28:55 -

I once made a game in Microsoft Excel using macros

Mike

 
"Now I guess we're... 'Path-E-Tech Management'" -Dilbert

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
10th June, 2004 at 01:22:52 -

Ha, I did the same thing with VBA in Word. Made a crappy little castlevania game.

 
Craps, I'm an old man!

Imp of Hazard Games



Registered
  27/08/2003
Points
  781
10th June, 2004 at 10:13:01 -

Castlevania in Word! Can you show me it?

 
I need painters, musicians and animators!

tdc052621



Registered
  20/12/2002
Points
  908
10th June, 2004 at 14:29:03 -

there is one problem with your game, it is that this takes alot of memory and web pages.

 
n/a

Imp of Hazard Games



Registered
  27/08/2003
Points
  781
10th June, 2004 at 15:57:59 -

Huh? Do you think I have made pages for EVERY SITUATION??? It only takes 2 files - the main page and the file with functions. And it doesn't take much memore actually.

 
I need painters, musicians and animators!
   

Post Reply



 



Advertisement

Worth A Click