Sign in to follow this  
Endemoniada

Server Side using VS2005 ?

Recommended Posts

Hi guys, I want to make some basic online 1 vs. 1 multiplayer games, like card games such as Poker. I'd like to use Flash on the client side but I don't know too much about the server side. I am quite proficient in C(++) and Windows programming. Can I do all the server side stuff using VS2005 in C(++) ? Do I make a console program that runs continuously ? I need some guidance. I don't mind the learning curve, I just want to make sure I start off on the right foot. Thanks.

Share this post


Link to post
Share on other sites
Yes, I believe you're on the right track. If you're using Actionscript 3.0 on the Flash side of things, its very easy to get your communication going using the new Socket class. In AS2, you can use the XMLSocket class, but its a bit more clunky.

Share this post


Link to post
Share on other sites
For C++, a while loop will be sufficient. Look up using either a network library or winsock. Make sure you know how to program before attempting a game though. In AS3 it's fairly easy actually to get things working client side. Make sure to read up on policy files.

Share this post


Link to post
Share on other sites
While you CAN write the server in C++, for a turn-based game like Poker, you really want to use a web server or application server, and write your server code as an application within that framework. Whatever you choose for the application or web server doesn't matter as much, as long as you can talk to it from AS3. I would probably start with Apache/PHP, just because that's what I'm most familiar with.

Share this post


Link to post
Share on other sites
You may want to look into flex and the flex messaging and rpc components. flex is as3 but without the flash gui, so I think you could still use these components in a standard flash game.

http://livedocs.adobe.com/flex/201/html/messaging_intro_101_2.html#126850

--Zims

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this