🔒 Locked
[web] php for games...
Advertisement
Original Post
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.
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 javascript.
You *can* make multiplayer games with Flash. (See UrbanSquall)
But as it seems you need something more powerful than Flash, I'd suggest ShockWave.
But as it seems you need something more powerful than Flash, I'd suggest ShockWave.
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]
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
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
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.
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.
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.
Quote:
Original post by Fenryl
is this maybe possible with javascript ?<!--QUOTE--></td></tr></table></BLOCKQUOTE><!--/QUOTE--><!--ENDQUOTE--><br><br>You won't make any MMO games in javascript. <br>Anyway I hope you are jocking.. <img src=http://www.gamedev.net/community/forums/images/icons/icon15.gif></td></tr></table></blockquote>
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
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
Java 3D seems quite capable. I think some games at FlyOrDie.com are powered by it. And AFAIK, it does use hardware-acceleration.
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??
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement