Welcome to Dream.In.Code
Getting Help is Easy!

Join 136,460 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,781 people online right now. Registration is fast and FREE... Join Now!




MultiPlayer Game Help

 
Reply to this topicStart new topic

MultiPlayer Game Help

IceX
24 Jul, 2008 - 10:18 PM
Post #1

New D.I.C Head
*

Joined: 17 Apr, 2008
Posts: 17

Hello,
may i know should i use webservice or socket for creating multiplayer games like Chinese Checkers? The game that has a shape of hexagon star.
User is offlineProfile CardPM
+Quote Post

theRemix
RE: MultiPlayer Game Help
25 Jul, 2008 - 05:25 PM
Post #2

D.I.C Regular
***

Joined: 19 Oct, 2005
Posts: 379



Thanked: 2 times
My Contributions
QUOTE(IceX @ 24 Jul, 2008 - 11:18 PM) *

Hello,
may i know should i use webservice or socket for creating multiplayer games like Chinese Checkers? The game that has a shape of hexagon star.


hey IceX normally with multiplayer, you will want a socket server, but for this type of turn based game, you can get away with "pull" type "chatrooms" so each "move" or even chatting posts to a temp database, and every 3-5 seconds each client (player) queries the database for updates, new moves causes the client (flash) to "move" and allow the players turn. each chat obviously posts a chat message.

so it can be done, and work quite well without a socket server.

make sense?
User is offlineProfile CardPM
+Quote Post

Jonson
RE: MultiPlayer Game Help
27 Jul, 2008 - 07:24 PM
Post #3

New D.I.C Head
*

Joined: 17 Apr, 2008
Posts: 40

Yup, So i can use a Timer class for the 3 sec to 5 sec right? This is wat i am doing right now which i think it works quite well.
User is offlineProfile CardPM
+Quote Post

BetaWar
RE: MultiPlayer Game Help
28 Jul, 2008 - 08:58 PM
Post #4

#include <soul.h>
Group Icon

Joined: 7 Sep, 2006
Posts: 2,023



Thanked: 81 times
Dream Kudos: 1175
My Contributions
Yes, timers will work fine, that is probably the best way to do it (as to not get Flash tied up too badly or your server bandwidth).
User is online!Profile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 04:11PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month