Straight Directions on how to make a multiplayer

tyler18000tyler18000

很久以前 | 帖子#1
I need help on how to make a multiplayer game. I have the name and I downloaded everything I needed but i'm really stuck. please help me.

coldcitycoldcity

很久以前 | 帖子#2
Start simple! Realistically there ARE some pre-requisites. You should have an understanding of client-server architecture and already be capable of making a simple single-player game in Flash. Knowledge of C# helps lots getting the server side running well, but if you can already code AS don't let not knowing C# put you off; the examples go a long way towards showing you enough C# to get by.

Setting up the development environment so that you've got a nice easy edit->build->test cycle is often the hardest/most intimidating part of a new project.

If you have Visual C# and Flash installed correctly, first make sure you can build and run eg the TicTacToe serverside code in C# (serverside.sln); to just run one of the examples, open it's serverside.sln and press F5 in Visual C#. Then you have a running local development server. Remember, every time you test your game-in-progress, you must first start the server.

Then open Flash.flp and run the movie from inside Flash. That gets you one game client instance. Now when you run the movie from inside Flash, an updated SWF gets built and put in the Output folder. To start a second instance, you can drag your swf from the Output folder to a web browser which will start another instance of the client. Then you have a 2-player test game running.

When things are running properly, look at the message handling systems in both the flash client and C# server first to understand how messages get passed. Look at the difference in message handling between DrawMagnets and TicTacToe and you'll see how messages have been implemented to deal with each type of gameplay.

Once you've done that, you probably understand quite a bit more than you do now. So hopefully, you can then pick the example most like what you want to do, and get coding :)
最后编辑很久以前

tyler18000tyler18000

很久以前 | 帖子#3
Thanks, but I already know how to get the other games running but what I'm trying to figure out is how to start the drawing and the text my flash game. I thought a multiplayer flash game was easier but I did not really try to create a single player version of it but I have so many ideas for it. This helped me a little.

RiiichRiiich

很久以前 | 帖子#4
Player movement, could you put an example of that?

if you have to send packets to the server or you just put player movement in and the server just copys everything?

回复主题

现在就注册以回复主题

5dyouxi

5dyouxi.com是一个独立的游戏网站,在这里你将可以免费玩到各种好玩的单人和多人游戏。

开发者工具

如果你是一位flash游戏开发者,我们有一些非常强大的工具来帮助你开发更加优秀的游戏。

经典游戏

为什么不试试我们这里的一些最为优秀的在线flash游戏呢?这可是完全免费的!

Copyright ©2007-2012 5dyouxi™ - All rights reserved.365.0209ms on SERVER34097
注册 或者