July 19th, 2006, 08:59 AM
Language to program multiplayer game
New here, so "Hi all"
I used to create simple games on the Amiga (using AMOS) and these days I'm a php web designer/programmer.
I'd really like to get back in to game programming and I'm currently looking at the different programming languages.
Long term, I'd like to create a top-down game (think AlienBreed) but multiplayer. In an ideal would, I'd be able to put this on the net and have anyone that visits my website to play it without having to manualy download/install anything (I don't like the 'feel' of flash based-games).
As an extra bonus, I'd like to be able to develop PC applications too.
Thanks for your time
July 19th, 2006, 09:57 AM
If you don't want people to have to install anything, then you have to use Flash.
Director is more powerful and has a true 3D enigne but the browser plugin is over 8mb to download (and most visitors will have to download it).
Otherwise you could use Java or C / C++. But again that would probably need a big download to get the actual game.
You could make some kind of game using PHP, it has been done, but the kind of game you could make would be limited.
:: My blip.fm tunes :: Web Design Feeds :: Web Dev Feeds :: CheatSheets :: PHP :: MySQL :: 13 Moon FB App.
"All matter is merely energy condensed to a slow vibration. We are all one consciousness experiencing itself - subjectively. There is no such thing as death, life is only a dream. We are the imaginations of ourselves."
- Bill Hicks
"Truth is hidden in the subtle nature of the heart of everything, although it is invisible. One cannot see it from inside and neither from the surface. One can only live and experience it."
- Heart Sutra
July 19th, 2006, 11:05 AM
Most of the game's created in php are RPG, So what type of game are you looking to create?
July 20th, 2006, 12:31 AM
most people have java installed on there system so if you make your game java based it would be quite accessable.
July 20th, 2006, 02:12 AM
If you don't want people having to download the game you'll be seriously reducing your choices in languages. I can only think of tree possiblities for that: Flash, Java Applet and Browser-Based (i.e. PHP).
If you want something in realtime the browser-based way will fall away too leaving you with flash and Applet.
- Hugh of Borg
The first thing young borg are taught: Keep away from Microsoft software!
July 20th, 2006, 10:38 PM
Java is a pain in the *** to even load on a page, like seriously it might just be me, but I goto a page with some Java in it and my browser goes really slow, an Applet icon comes up on my explorer bar, and my whole computer lags for a bit, even happens in good ol firefox... most annoying thing ever.
PHP is the way to go for any web based game, but its not gonna be real time unless you get some crazy AJAX going, which is gonna make you pull your hair out if you attempt to write something up. For PHP the best your gonna make is a RPG, with minimal 2D (sprites) animation, if any.
July 20th, 2006, 11:33 PM
Java, PHP, C++...
Depending on what you plan on doing, basically... most actual games nowadays (nothing web-based) primarily use C++
July 21st, 2006, 12:20 AM
Have you tried a fresh install of windows? Whenever you get around to it you might find it runs faster.
Originally Posted by Brokenhope
Also PHP can be real time, you just have to keep refreshing the page, an example is http://www.advancedpowers.com/me_4g/ it's a space RPG type of game, where you do play real time against live players, and if you don't refresh often you'll find yourself dead.
July 27th, 2006, 06:02 PM
I have freshly installed it once (back in the days that I used IE). Its always been slow, for any computer I use, its about as slow as opening a .pdf file internally in firefox, gets really slow for about a min or two. My computers in perfect shape now, and it still lags.
Originally Posted by Viper_SB
MMORPG's can always seem like real time, by automaticaly refreshing it, but your not gonna find a real time php based game ever. Actually when it comes to MMORPG's computer games, some dont even do realtime, they just constantly connect for new updates, because its not necessary to keep a constant data stream, battles are turn based in most cases, so it doesnt matter, its not gonna effect you if you dont get the update immediatly, a few seconds of delay wont mean a thing.
Now when it comes to other generes of games, they need to be realtime, like a shooting game, or sports game, everything has to be updated in real - realtime, a few seconds of delay can be the diffrence of killing someone, or getting killed.
Flash is capable of realtime (or something very close), but you just have to set up a flash server, there could be other ways, but thats the only one I know of.
So if you want to create a real time game, online, you have pretty much Flash as your only option, and your most likely going to have to rent or buy a server for that.
You can have semi-real time by using PHP and AJAX, but AJAX is so complex, that you should leave it to only a programming geneous, and its so 'ify ify on browser support' its not gonna work for probably a forth of the people atleast. Plus the best your gonna make is a mmorpg that doesnt require noticable page reloads.
You can have something that can be confused as real time, but its nowhere near, by just having the page automaticaly refresh every couple of seconds, but the best game you will make with that is a turn based MMORPG.
And on a side note, if you make a computer game that runs in real time, and keeps an ongoing connection to the server, your most likely going to have to rent a couple of servers atleast, or buy them... and you will need a huge amount of transfer.
July 27th, 2006, 08:54 PM
Let us know if you ever get the game going
July 28th, 2006, 03:28 PM
Brokenhope is right, flash is by far your best program from a game that can be played right off the website. Director would be next, and is a decent program, but unless you want to do 3D I would go with flash. You say that you dont like the look of flash games, well, a lot of games use the flash tools for the design, so a lot of them tend to have a standardized look. However, you could easily create your graphics in a 3rd party program and include them as 24bit transparent png files and have a game that looks NOTHING like flash. However, by doing that you are going to make your game rather large in download size.
There is other ways to get your flash game to be multiplayer without having a flash server runing with different zones and stuff. You could use the XML object supported by flash to fetch and send information, also, there is a load vars object which will do the same. The flash server does not connect to a database, it just allows you to share current flash data between different flash applications via some included actionscripts. Flash itself also does not have database connectivity, so you will need a third party language like PHP to handle your database stuff.
Anyways, get flash, it will work.