Php Game Programming

Posts about php tutorial written by Jade. I’ve noticed on several client games I’ve worked on recently that instead of creating a global cleaning function to prevent SQL injections they’re wrapping mysql_real_escape_string() calls around everything.

Active3 years ago
  • “PHP Game Programming” offers you the introduction you need to begin creating your own online games. You'll be amazed at the games you can create with this powerful-and completely free-development tool!
  • GameDev.net is your game development community. Learn, share, and connect with other developers in the forums, tutorials, blogs, jobs, projects, and more.

I want to make a simple online multiple player cards game using PHP/Ajax. I guess I need socket programming (I want it to be real time). I've worked with sockets before in Java, but not for an online program, just a network game. I searched but I didn't really find a comprehensive code.Also another issue is that several games might be played simultaneously and I don't want them to interrupt each other. How to manage them all?

Could you guys give me a simple understanding of how to do it? Do I need to write two codes, one for the management (host) and another one for clients? Is it possible to test these kind of programs on localhost(xampp)?

Also any simple codes will be appreciated.

Thanks in advance.

Java game programming tutorials
user1253460

3 Answers

dotoreedotoree
2,7501 gold badge19 silver badges26 bronze badges

I do not think PHP is the right language for this. Also, there is a difference between Ajax and sockets. However, despite my objections, the least I can do is point you to the right resources. My 2 cents.

Php Game Programming Tutorial

William DixonWilliam Dixon

In a similar question from earlier today I found the APE Project that while researching.

I haven't tried it but it looks fairly good with the main limitation seeming to be no Windows server support. So you probably couldn't install and develop it on a Windows localhost LAMP set up, maybe think of installing Linux and setting up a LAMP server locally on that - it's what I did.

Good luck, and if you give it a shot, let me know how you go. I'm quite interested but don't have an application for it at the moment.

Php Game Programming

Pang
7,20716 gold badges68 silver badges108 bronze badges
RyanRyan
1,8081 gold badge13 silver badges17 bronze badges