Skip to main content
gamedev.net
🔒 Locked

[web] php for games...

Started by Fenryl May 28, 2005 at 3:31 PM 32 replies 9.4k views
Original Post
Fenryl
Fenryl
is it possible to make good games with PHP (i want to try to make a multiplayer game...) ?
Rob Loach
Rob Loach
Most definately. In fact, many online web-based games use PHP primarily as its backend. I recently took a quick look through PHP Game Programming by Matt Rutledge and he has you design a lemonade stand multiplayer game at the end of the book. You could pick that one up. Hope it helps.
Rob Loach [Website] [Projects] [
Fenryl
Fenryl
ok thx! i was wondering a long time how i could make multiplayer games on web. is it also maybe posible to make massa multiplayer, and does it support 3D gfx ?
Pipo DeClown
Pipo DeClown
PHP is a server-side scripting language, so to do anything client-side (like real-time graphics and playing sounds) you'd need to work with a different medium, like Flash or &#106avascript.
Fenryl
Fenryl
but, Flash doesnt support 3D gfx and you also cant make multiplayer games with it (you mean something like FlashMX ?)
Pipo DeClown
Pipo DeClown
You *can* make multiplayer games with Flash. (See UrbanSquall)
But as it seems you need something more powerful than Flash, I'd suggest ShockWave.
Fenryl
Fenryl
but for shockwave i should need Indicator isnt? and i havent...
but is it possible to make a massa multiplayer game with 2D gfx and music with PHP?
Pipo DeClown
Pipo DeClown
Quote:
Original post by Fenryl
but is it possible to make a massa multiplayer game with 2D gfx and music with PHP?


No. As I said before, PHP is server-side but the things you want to achieve have to be done client-side.

[edit]Added the quote.

[Edited by - Pipo DeClown on May 29, 2005 3:20:22 AM]
markr
markr
Absolutely possible to make games using PHP.

Because of how it's used (i.e. typically server-side), it generally lends itself to turn-based strategy / resource management games, played over the web.

These usually have only simple graphics (for instance, those created inside the web browser, or simple images created server-side). If you plan on doing something that uses realtime 2d or 3d graphics, I recommend that you use something else.

That doesn't mean you can't use PHP for other parts of your game.

Mark
Unknown User
Unknown User
PHP is typically used for browser based games and things that can only be rendered with HTML. However like the above poster said, you can use PHP for other parts of your game. I've seen some pretty cool things done with people storing highscores and users in a MySQL database and then being able to have a PHP administrator so they can keep tabs on their game without nessisarily needing an administrative client.
DakeDesu
DakeDesu
Yes, typically PHP can be used serverside for web based games, but I, if I wanted to, could download PHP and Pear, and use it to make client end games. No, I am not saying in the browser. I am saying on the user's computer, without the browser involed.

PHP is already being used for commandline applications, and with libraries like GTK, it may, depending on how people use it, also grow into a graphical app based langauge.

So no, you can do it on the client end... just it is a complete mess to setup, and makes distribution of games a little harder.
Fenryl
Fenryl
so, how can i make massa multiplayer games that works out a browser ?
is this maybe possible with &#106avascript ?
vNistelrooy
vNistelrooy
Quote:
Original post by Fenryl
is this maybe possible with &#106avascript ?<!--QUOTE--></td></tr></table></BLOCKQUOTE><!--/QUOTE--><!--ENDQUOTE--><br><br>You won't make any MMO games in &#106avascript. <br>Anyway I hope you are jocking.. <img src=http://www.gamedev.net/community/forums/images/icons/icon15.gif></td></tr></table></blockquote>
"C lets you shoot yourself in the foot rather easily. C++ allows you to reuse the bullet!"
Fenryl
Fenryl
ok lol :-d

but what is the best language to make such multiplayer games that works from your browser with?
markr
markr
You need to be more specific about what type of game you want to make.

You aren't going to get any high-performance graphics on the client-side unless you use something like .NET - and then it will rely on

- Client using Internet Explorer
- Client having the right .NET framework version
- Security settings on the client browser / firewalls etc, permitting that kind of app

Which to be quite honest, is not really a web application at all - you may as well use a fat-client application (i.e. just distribute the .exe)

---

You can use Java or Flash - with better client support - but the client still has to have the right versions of the libraries installed - and you won't have 3d acceleration (but still fast enough for some games).

Popcap.com use Java for most of their games, and ActiveX for some - I don't think they use hardware 3d for anything though.

The ActiveX games of course, need to be signed and trusted by the client. And are specific to Windows and IE.

Mark
Pipo DeClown
Pipo DeClown
Java 3D seems quite capable. I think some games at FlyOrDie.com are powered by it. And AFAIK, it does use hardware-acceleration.
vNistelrooy
vNistelrooy
Quote:
Original post by markr
You can use Java or Flash - with better client support - but the client still has to have the right versions of the libraries installed - and you won't have 3d acceleration (but still fast enough for some games).


You can use Java with 3D hardware acceleration. This is the most likely the best way to do it. Just tell me, why the hell do you want to create a multiplayer game that depends on the browser??
"C lets you shoot yourself in the foot rather easily. C++ allows you to reuse the bullet!"
Fenryl
Fenryl
i realy cant believe that its possible to make multiplayer Flash games, how is that possible ? are there maybe tutorials for that?
Wan
Wan
You mean a real-time game, or turn-based?
It's both possible (in Flash), but there's quite difference.
Fenryl
Fenryl
I think real-time, but can you please axplain me how it can be done with Flash

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.