The Daily Click ::. Forums ::. Klik Coding Help ::. Online game help
 

Post Reply  Post Oekaki 
 

Posted By Message

1



Registered
  31/12/2005
Points
  45
13th October, 2006 at 17:00:39 -

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

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
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.

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

1



Registered
  31/12/2005
Points
  45
13th October, 2006 at 23:30:21 -

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.."
   

Post Reply



 



Advertisement

Worth A Click