How would I go about making an online card game so that you can:
a) create a game and wait for someone
b) when someone joins the game starts
c) you both control your own cards and can't see the other person's
???
What I mean is sort of like Yahoo Chess or any card game. Help!
"O RLY?" "Yes Really.." "O RLY?" "Yes Really.." "O RLY?" "Yes Really.." "O RLY?" "Yes Really.." "O RLY?" "Yes Really.." "O RLY?" "Yes Really.." "O RLY?" "Yes Really.." "O RLY?" "Yes Really.."
Assault Andy Administrator
I make other people create vaporware
Registered 29/07/2002
Points 5686
13th October, 2006 at 20:07:30 -
First you start by learning one of the various online objects. I would recommend Mooclick or Moogame. You can learn about these objects by searching TDC articles\forums\downloads for tutorial and example files. Once you have learnt the basics you can then do the following.
A) Create a game and wait for someone.
This would simply be creating a channel, the game code does not execute until someone joins your channel.
B) When someone joins the game starts.
Same as A.
C) You both control your own cards and can't see the other person's.
That is a very generic and vague question. However it's not really a very difficult question to solve. Say you have your 5 cards (randomly picked from a deck or something), whenever you want the other player to know something about your cards, you simply send them the data.
Eg. You have 5 cards, and the other player wants to know what card 1 is. You send the data "Ace of Spades". When they recieve that data, they interpret it and turn it into game code.
Okay I think that I get it. Thanks for your help man
"O RLY?" "Yes Really.." "O RLY?" "Yes Really.." "O RLY?" "Yes Really.." "O RLY?" "Yes Really.." "O RLY?" "Yes Really.." "O RLY?" "Yes Really.." "O RLY?" "Yes Really.." "O RLY?" "Yes Really.."