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!
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.
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)
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
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'"
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.